Revision 5fad9b4a
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/key/polytomous/e4/handler/CreateChildNodeHandlerE4.java | ||
---|---|---|
66 | 66 |
public boolean canExecute(@Named(IServiceConstants.ACTIVE_SELECTION)IStructuredSelection selection, |
67 | 67 |
MHandledMenuItem menuItem){ |
68 | 68 |
boolean canExecute = false; |
69 |
canExecute = selection!=null && !selection.isEmpty(); |
|
69 |
canExecute = selection!=null |
|
70 |
&& !selection.isEmpty() |
|
71 |
&& selection.getFirstElement() instanceof PolytomousKeyNode; |
|
70 | 72 |
menuItem.setVisible(canExecute); |
71 | 73 |
return canExecute; |
72 | 74 |
} |
Also available in: Unified diff
ref #6908 Fix activation of handlers for PK list editor