Revision 9b8d1a1c
Added by Katja Luther about 5 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/CreateClassificationHierarchyHandlerE4.java | ||
---|---|---|
10 | 10 |
import org.eclipse.e4.ui.services.IServiceConstants; |
11 | 11 |
import org.eclipse.jface.viewers.TreeSelection; |
12 | 12 |
|
13 |
import eu.etaxonomy.cdm.model.metadata.PreferencePredicate; |
|
13 | 14 |
import eu.etaxonomy.cdm.model.taxon.Classification; |
14 | 15 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
15 | 16 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
... | ... | |
17 | 18 |
import eu.etaxonomy.taxeditor.navigation.l10n.Messages; |
18 | 19 |
import eu.etaxonomy.taxeditor.navigation.navigator.e4.TaxonNavigatorE4; |
19 | 20 |
import eu.etaxonomy.taxeditor.navigation.operation.CreateNewTaxonHierarchyOperation; |
20 |
import eu.etaxonomy.taxeditor.preference.EditorPreferencePredicate; |
|
21 | 21 |
import eu.etaxonomy.taxeditor.preference.IPreferenceKeys; |
22 | 22 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
23 | 23 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
... | ... | |
58 | 58 |
&& selection.getFirstElement() instanceof TaxonNode |
59 | 59 |
&& ((TaxonNode) selection.getFirstElement()).getTaxon()==null |
60 | 60 |
&& PreferencesUtil.getBooleanValue(IPreferenceKeys.SHOW_EXPERIMENTAL_FEATURES) |
61 |
&& !PreferencesUtil.getBooleanValue(EditorPreferencePredicate.DisableMultiClassification.getKey());
|
|
61 |
&& !PreferencesUtil.getBooleanValue(PreferencePredicate.DisableMultiClassification.getKey()); |
|
62 | 62 |
menuItem.setVisible(canExecute); |
63 | 63 |
return canExecute; |
64 | 64 |
} |
Also available in: Unified diff
ref #8078: move editorPreferencePredicates to cdmlib