Revision 8880b9b3
Added by Katja Luther almost 6 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/RemotingMoveTaxonNodeHandlerE4.java | ||
---|---|---|
145 | 145 |
@CanExecute |
146 | 146 |
private boolean canExecute(@Named(IServiceConstants.ACTIVE_SELECTION)TreeSelection selection, MHandledMenuItem menuItem){ |
147 | 147 |
boolean canExecute = false; |
148 |
canExecute = selection.size()==1 |
|
149 |
&& selection.getFirstElement() instanceof TaxonNodeDto |
|
148 |
canExecute = selection.getFirstElement() instanceof TaxonNodeDto |
|
150 | 149 |
&& ((TaxonNodeDto)selection.getFirstElement()).getTaxonUuid() != null; |
151 | 150 |
menuItem.setVisible(canExecute); |
152 | 151 |
return canExecute; |
Also available in: Unified diff
revert regression