Revision 704648d7
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/e4/handler/RemotingChangeAcceptedTaxonToSynonymHandlerE4.java | ||
---|---|---|
120 | 120 |
@CanExecute |
121 | 121 |
private boolean canExecute(@Named(IServiceConstants.ACTIVE_SELECTION)TreeSelection selection, MHandledMenuItem menuItem){ |
122 | 122 |
boolean canExecute = false; |
123 |
canExecute = selection.getFirstElement() instanceof TaxonNode |
|
124 |
&& ((TaxonNode) selection.getFirstElement()).getTaxon()!=null; |
|
123 | 125 |
menuItem.setVisible(canExecute); |
124 |
canExecute = selection.getFirstElement() instanceof TaxonNode; |
|
125 |
System.out.println(canExecute); |
|
126 | 126 |
return canExecute; |
127 | 127 |
} |
128 | 128 |
|
Also available in: Unified diff
ref #6598 Fix menu item visibility