Revision 9b8d1a1c
Added by Katja Luther about 5 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/CloneClassificationHandlerE4.java | ||
---|---|---|
14 | 14 |
import org.eclipse.jface.wizard.WizardDialog; |
15 | 15 |
import org.eclipse.swt.widgets.Shell; |
16 | 16 |
|
17 |
import eu.etaxonomy.cdm.model.metadata.PreferencePredicate; |
|
17 | 18 |
import eu.etaxonomy.cdm.model.reference.Reference; |
18 | 19 |
import eu.etaxonomy.cdm.model.taxon.Classification; |
19 | 20 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
... | ... | |
22 | 23 |
import eu.etaxonomy.taxeditor.navigation.l10n.Messages; |
23 | 24 |
import eu.etaxonomy.taxeditor.navigation.navigator.e4.TaxonNavigatorE4; |
24 | 25 |
import eu.etaxonomy.taxeditor.navigation.operation.CloneClassificationOperation; |
25 |
import eu.etaxonomy.taxeditor.preference.EditorPreferencePredicate; |
|
26 | 26 |
import eu.etaxonomy.taxeditor.preference.IPreferenceKeys; |
27 | 27 |
import eu.etaxonomy.taxeditor.preference.PreferencesUtil; |
28 | 28 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
... | ... | |
75 | 75 |
&& selection.getFirstElement() instanceof TaxonNode |
76 | 76 |
&& ((TaxonNode) selection.getFirstElement()).getTaxon()==null |
77 | 77 |
&& PreferencesUtil.getBooleanValue(IPreferenceKeys.SHOW_EXPERIMENTAL_FEATURES) |
78 |
&& !PreferencesUtil.getBooleanValue(EditorPreferencePredicate.DisableMultiClassification.getKey());
|
|
78 |
&& !PreferencesUtil.getBooleanValue(PreferencePredicate.DisableMultiClassification.getKey()); |
|
79 | 79 |
menuItem.setVisible(canExecute); |
80 | 80 |
return canExecute; |
81 | 81 |
} |
Also available in: Unified diff
ref #8078: move editorPreferencePredicates to cdmlib