Revision a2121c64
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/handler/SetMergeCandidateHandlerE4.java | ||
---|---|---|
47 | 47 |
MHandledMenuItem menuItem) { |
48 | 48 |
boolean canExecute = false; |
49 | 49 |
BulkEditorE4 editor = (BulkEditorE4) activePart.getObject(); |
50 |
canExecute = !editor.getEditorInput().getMergeCandidates().contains(selection); |
|
50 |
canExecute = selection!=null |
|
51 |
&& !editor.getEditorInput().getMergeCandidates().contains(selection); |
|
51 | 52 |
menuItem.setVisible(canExecute); |
52 | 53 |
return canExecute; |
53 | 54 |
} |
Also available in: Unified diff
ref #6932 Asjust menu item visibility