Revision 1c47af77
Added by Patrick Plitzner almost 6 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/handler/ConvertTeam2PersonHandlerE4.java | ||
---|---|---|
79 | 79 |
boolean canExecute = false; |
80 | 80 |
BulkEditorE4 bulkEditorE4 = (BulkEditorE4)activePart.getObject(); |
81 | 81 |
StructuredSelection selection = (StructuredSelection)bulkEditorE4.getSelection(); |
82 |
canExecute = bulkEditorE4.getEditorInput().isConvertingEnabled(); |
|
82 |
canExecute = !selection.isEmpty() && bulkEditorE4.getEditorInput().isConvertingEnabled();
|
|
83 | 83 |
Iterator iterator = selection.iterator(); |
84 | 84 |
for(selection.iterator();iterator.hasNext();){ |
85 | 85 |
if(!(iterator.next() instanceof Team)){ |
Also available in: Unified diff
ref #7518 Adjust visibility of context menu items