Revision 4beb3f81
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/CloneClassificationHandlerE4.java | ||
---|---|---|
68 | 68 |
@CanExecute |
69 | 69 |
private boolean canExecute(@Named(IServiceConstants.ACTIVE_SELECTION)TreeSelection selection, MHandledMenuItem menuItem){ |
70 | 70 |
boolean canExecute = false; |
71 |
canExecute = selection.getFirstElement() instanceof Classification && PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_EXPERIMENTAL_FEATURES); |
|
71 |
canExecute = selection.getFirstElement() instanceof TaxonNode |
|
72 |
&& ((TaxonNode) selection.getFirstElement()).getTaxon()==null |
|
73 |
&& PreferencesUtil.getPreferenceStore().getBoolean(IPreferenceKeys.SHOW_EXPERIMENTAL_FEATURES); |
|
72 | 74 |
menuItem.setVisible(canExecute); |
73 | 75 |
return canExecute; |
74 | 76 |
} |
Also available in: Unified diff
ref #6909 Fix enabling of experimental handlers