Revision 401bbfa3
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/handler/SetMergeTargetHandlerE4.java | ||
---|---|---|
47 | 47 |
boolean canExecute = false; |
48 | 48 |
BulkEditorE4 editor = (BulkEditorE4) activePart.getObject(); |
49 | 49 |
canExecute = selection!=null |
50 |
&& editor.getEditorInput().isMergingEnabled() |
|
50 | 51 |
&& (editor.getEditorInput().getMergeTarget()==null |
51 | 52 |
|| !editor.getEditorInput().getMergeTarget().equals(selection)); |
52 | 53 |
menuItem.setVisible(canExecute); |
Also available in: Unified diff
ref #6932 enhancements for bulk editor