Project

General

Profile

Revision 1e45e654

ID1e45e65401dd74be096584ccd78c4e02ab44c220
Parent a9faed7f
Child 2635a611

Added by Katja Luther 7 months ago

ref #7440: filter common name references only when preference is set

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/preference/TaxonomicEditorGeneralPreferences.java
67 67
		addField(new BooleanFieldEditor(IPreferenceKeys.SORT_TAXA_BY_RANK_AND_NAME,
68 68
                "In selection dialogs for taxa, sort by rank and name",
69 69
                getFieldEditorParent()));
70
		addField(new BooleanFieldEditor(
71
                IPreferenceKeys.FILTER_COMMON_NAME_REFERENCES,
72
                "Filter common name references", getFieldEditorParent()));
70 73

  
71 74
		Composite composite = new Composite(getFieldEditorParent(), SWT.NULL);
72 75
        composite.setLayoutData(new GridData(SWT.FILL, SWT.TOP, true, false, 2, 1));
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/SelectionDialogFactory.java
42 42
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
43 43
import eu.etaxonomy.cdm.model.taxon.TaxonNode;
44 44
import eu.etaxonomy.taxeditor.model.MessagingUtils;
45
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
45 46
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
46 47
import eu.etaxonomy.taxeditor.ui.element.IEntityElement;
47 48
import eu.etaxonomy.taxeditor.ui.section.agent.TeamMemberElement;
......
88 89
			return (T) NomenclaturalReferenceSelectionDialog.select(shell, //conversation,
89 90
			        (Reference) currentSelection, ((NomenclaturalReferenceDetailElement)parentElement).getEntity().getCombinationAuthorship());
90 91
		}
91
		if(clazz.equals(Reference.class) && parentElement instanceof CommonNameSourceElement){
92
		if(clazz.equals(Reference.class) && parentElement instanceof CommonNameSourceElement && PreferencesUtil.getFilterCommonNameReferences()){
92 93
            return (T) CommonNameReferenceSelectionDialog.select(shell, //conversation,
93 94
                    (Reference) currentSelection);
94 95
        }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)