Revision 8309769f
Added by Patrick Plitzner almost 6 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/handler/DeleteHandlerE4.java | ||
---|---|---|
282 | 282 |
public boolean canExecute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart, |
283 | 283 |
MHandledMenuItem menuItem){ |
284 | 284 |
boolean canExecute = false; |
285 |
StructuredSelection selection = (StructuredSelection)((BulkEditorE4)activePart.getObject()).getViewer().getSelection();
|
|
285 |
StructuredSelection selection = (StructuredSelection)((BulkEditorE4)activePart.getObject()).getSelection(); |
|
286 | 286 |
canExecute = !selection.isEmpty(); |
287 | 287 |
menuItem.setVisible(canExecute); |
288 | 288 |
return canExecute; |
Also available in: Unified diff
ref #7439 Propagate row selection of nattable