Revision 704648d7
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/RemotingMoveTaxonNodeHandlerE4.java | ||
---|---|---|
140 | 140 |
@CanExecute |
141 | 141 |
private boolean canExecute(@Named(IServiceConstants.ACTIVE_SELECTION)TreeSelection selection, MHandledMenuItem menuItem){ |
142 | 142 |
boolean canExecute = false; |
143 |
canExecute = selection.getFirstElement() instanceof TaxonNode |
|
144 |
&& ((TaxonNode) selection.getFirstElement()).getTaxon()!=null; |
|
143 | 145 |
menuItem.setVisible(canExecute); |
144 |
canExecute = selection.getFirstElement() instanceof TaxonNode; |
|
145 | 146 |
return canExecute; |
146 | 147 |
} |
147 | 148 |
|
Also available in: Unified diff
ref #6598 Fix menu item visibility