boolean canExecute = false;
BulkEditorE4 bulkEditorE4 = (BulkEditorE4)activePart.getObject();
StructuredSelection selection = (StructuredSelection)bulkEditorE4.getSelection();
- canExecute = bulkEditorE4.getEditorInput().isConvertingEnabled();
+ canExecute = !selection.isEmpty() && bulkEditorE4.getEditorInput().isConvertingEnabled();
Iterator iterator = selection.iterator();
for(selection.iterator();iterator.hasNext();){
if(!(iterator.next() instanceof Person)){
boolean canExecute = false;
BulkEditorE4 bulkEditorE4 = (BulkEditorE4)activePart.getObject();
StructuredSelection selection = (StructuredSelection)bulkEditorE4.getSelection();
- canExecute = bulkEditorE4.getEditorInput().isConvertingEnabled();
+ canExecute = !selection.isEmpty() && bulkEditorE4.getEditorInput().isConvertingEnabled();
Iterator iterator = selection.iterator();
for(selection.iterator();iterator.hasNext();){
if(!(iterator.next() instanceof Team)){