Revision 704648d7
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/MoveTaxonHandlerE4.java | ||
---|---|---|
106 | 106 |
@CanExecute |
107 | 107 |
private boolean canExecute(@Named(IServiceConstants.ACTIVE_SELECTION)TreeSelection selection, MHandledMenuItem menuItem){ |
108 | 108 |
boolean canExecute = false; |
109 |
menuItem.setVisible(canExecute); |
|
110 | 109 |
canExecute = selection.getFirstElement() instanceof TaxonNode; |
110 |
menuItem.setVisible(canExecute); |
|
111 | 111 |
return canExecute; |
112 | 112 |
} |
113 | 113 |
|
Also available in: Unified diff
ref #6598 Fix menu item visibility