Project

General

Profile

« Previous | Next » 

Revision 8309769f

Added by Patrick Plitzner almost 6 years ago

ref #7439 Propagate row selection of nattable

View differences:

eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/command/DynamicMarkerTypeEditingMenuE4.java
88 88
	    public boolean canExecute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart,
89 89
	            MHandledMenuItem menuItem){
90 90
	        boolean canExecute = false;
91
	        StructuredSelection selection = (StructuredSelection)((BulkEditorE4)activePart.getObject()).getViewer().getSelection();
91
	        StructuredSelection selection = (StructuredSelection)((BulkEditorE4)activePart.getObject()).getSelection();
92 92
	        canExecute = !selection.isEmpty() && selection.getFirstElement() instanceof IAnnotatableEntity;
93 93
	        menuItem.setVisible(canExecute);
94 94
	        return canExecute;

Also available in: Unified diff