Revision 185eb33b
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/NewClassificationHandlerE4.java | ||
---|---|---|
22 | 22 |
|
23 | 23 |
import eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester; |
24 | 24 |
import eu.etaxonomy.taxeditor.newWizard.NewClassificationWizard; |
25 |
import eu.etaxonomy.taxeditor.preference.IPreferenceKeys;
|
|
25 |
import eu.etaxonomy.taxeditor.preference.EditorPreferencePredicate;
|
|
26 | 26 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
27 | 27 |
|
28 | 28 |
/** |
... | ... | |
47 | 47 |
private boolean canExecute(MHandledMenuItem menuItem){ |
48 | 48 |
boolean canExecute = false; |
49 | 49 |
|
50 |
canExecute = TaxonNodePropertyTester.noClassifiactionExists() || !PreferencesUtil.getBooleanValue(IPreferenceKeys.DISABLE_MULTI_CLASSIFICATION);
|
|
50 |
canExecute = TaxonNodePropertyTester.noClassifiactionExists() || !PreferencesUtil.getBooleanValue(EditorPreferencePredicate.DisableMultiClassification.getKey());
|
|
51 | 51 |
menuItem.setVisible(canExecute); |
52 | 52 |
return canExecute; |
53 | 53 |
} |
Also available in: Unified diff
ref #7849: improve DB preference handling and use editorpreferencePredicates keys also for local preferences