Revision e82f01c0
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/DeleteHandlerE4.java | ||
---|---|---|
181 | 181 |
} |
182 | 182 |
|
183 | 183 |
@CanExecute |
184 |
private boolean canExecute(@Named(IServiceConstants.ACTIVE_SELECTION)TreeSelection selection){ |
|
185 |
return !selection.isEmpty() && !(selection.getFirstElement() instanceof Synonym); |
|
184 |
private boolean canExecute(@Named(IServiceConstants.ACTIVE_SELECTION)TreeSelection selection, MHandledMenuItem menuItem){ |
|
185 |
boolean canExecute = false; |
|
186 |
menuItem.setVisible(canExecute); |
|
187 |
canExecute = !selection.isEmpty() && !(selection.getFirstElement() instanceof Synonym); |
|
188 |
return canExecute; |
|
186 | 189 |
} |
187 | 190 |
|
188 | 191 |
protected boolean closeObsoleteEditor(TaxonNode taxonNode){ |
Also available in: Unified diff
ref #6909 Hide disabled menu items