Revision cfc9fe89
Added by Andreas Müller almost 4 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/handler/ConvertPerson2TeamHandlerE4.java | ||
---|---|---|
35 | 35 |
/** |
36 | 36 |
* @author k.luther |
37 | 37 |
* @date 12.05.2015 |
38 |
* |
|
39 | 38 |
*/ |
40 | 39 |
public class ConvertPerson2TeamHandlerE4 { |
41 | 40 |
|
... | ... | |
54 | 53 |
} |
55 | 54 |
} |
56 | 55 |
IStructuredSelection selection = editor.getSelection(); |
57 |
Iterator iterator = selection.iterator(); |
|
56 |
Iterator<?> iterator = selection.iterator();
|
|
58 | 57 |
for(selection.iterator();iterator.hasNext();){ |
59 | 58 |
|
60 | 59 |
Person person = (Person) iterator.next(); |
... | ... | |
82 | 81 |
BulkEditorE4 bulkEditorE4 = (BulkEditorE4)activePart.getObject(); |
83 | 82 |
StructuredSelection selection = (StructuredSelection)bulkEditorE4.getSelection(); |
84 | 83 |
canExecute = !selection.isEmpty() && bulkEditorE4.getEditorInput().isConvertingEnabled(); |
85 |
Iterator iterator = selection.iterator(); |
|
84 |
Iterator<?> iterator = selection.iterator();
|
|
86 | 85 |
for(selection.iterator();iterator.hasNext();){ |
87 | 86 |
if(!(iterator.next() instanceof Person)){ |
88 | 87 |
canExecute = false; |
Also available in: Unified diff
cleanup