Project

General

Profile

« Previous | Next » 

Revision 185eb33b

Added by Katja Luther over 5 years ago

ref #7849: improve DB preference handling and use editorpreferencePredicates keys also for local preferences

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/CloneClassificationHandlerE4.java
22 22
import eu.etaxonomy.taxeditor.navigation.l10n.Messages;
23 23
import eu.etaxonomy.taxeditor.navigation.navigator.e4.TaxonNavigatorE4;
24 24
import eu.etaxonomy.taxeditor.navigation.operation.CloneClassificationOperation;
25
import eu.etaxonomy.taxeditor.preference.EditorPreferencePredicate;
25 26
import eu.etaxonomy.taxeditor.preference.IPreferenceKeys;
26 27
import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
27 28
import eu.etaxonomy.taxeditor.store.StoreUtil;
......
74 75
                && selection.getFirstElement() instanceof TaxonNode
75 76
                && ((TaxonNode) selection.getFirstElement()).getTaxon()==null
76 77
                && PreferencesUtil.getBooleanValue(IPreferenceKeys.SHOW_EXPERIMENTAL_FEATURES)
77
                && !PreferencesUtil.getBooleanValue(IPreferenceKeys.DISABLE_MULTI_CLASSIFICATION);
78
                && !PreferencesUtil.getBooleanValue(EditorPreferencePredicate.DisableMultiClassification.getKey());
78 79
        menuItem.setVisible(canExecute);
79 80
        return canExecute;
80 81
    }

Also available in: Unified diff