Revision 8309769f
Added by Patrick Plitzner almost 6 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/handler/ConvertPerson2TeamHandlerE4.java | ||
---|---|---|
75 | 75 |
public boolean canExecute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart, |
76 | 76 |
MHandledMenuItem menuItem){ |
77 | 77 |
boolean canExecute = false; |
78 |
StructuredSelection selection = (StructuredSelection)((BulkEditorE4)activePart.getObject()).getViewer().getSelection();
|
|
78 |
StructuredSelection selection = (StructuredSelection)((BulkEditorE4)activePart.getObject()).getSelection(); |
|
79 | 79 |
canExecute = ((BulkEditorE4)activePart.getObject()).getEditorInput().isConvertingEnabled() && selection.getFirstElement() instanceof Person && selection.size() == 1; |
80 | 80 |
menuItem.setVisible(canExecute); |
81 | 81 |
return canExecute; |
Also available in: Unified diff
ref #7439 Propagate row selection of nattable