Revision 843eefc4
Added by Katja Luther almost 3 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/handler/RemoveMergeCandidateHandlerE4.java | ||
---|---|---|
20 | 20 |
import org.eclipse.jface.viewers.IStructuredSelection; |
21 | 21 |
|
22 | 22 |
import eu.etaxonomy.cdm.model.common.CdmBase; |
23 |
import eu.etaxonomy.taxeditor.bulkeditor.e4.BulkEditorE4;
|
|
23 |
import eu.etaxonomy.taxeditor.bulkeditor.e4.BulkEditor; |
|
24 | 24 |
|
25 | 25 |
/** |
26 | 26 |
* |
... | ... | |
33 | 33 |
|
34 | 34 |
@Execute |
35 | 35 |
public void execute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart) { |
36 |
BulkEditorE4 editor = (BulkEditorE4) activePart.getObject();
|
|
36 |
BulkEditor editor = (BulkEditor) activePart.getObject();
|
|
37 | 37 |
IStructuredSelection selection = editor.getSelection(); |
38 | 38 |
Iterator iterator = selection.iterator(); |
39 | 39 |
for(selection.iterator();iterator.hasNext();){ |
... | ... | |
47 | 47 |
public boolean canExecute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart, |
48 | 48 |
MHandledMenuItem menuItem) { |
49 | 49 |
boolean canExecute = false; |
50 |
BulkEditorE4 editor = (BulkEditorE4) activePart.getObject();
|
|
51 |
IStructuredSelection selection = ((BulkEditorE4)activePart.getObject()).getSelection();
|
|
50 |
BulkEditor editor = (BulkEditor) activePart.getObject();
|
|
51 |
IStructuredSelection selection = ((BulkEditor)activePart.getObject()).getSelection(); |
|
52 | 52 |
boolean selectedMergeCandidate = false; |
53 | 53 |
Iterator iterator = selection.iterator(); |
54 | 54 |
for(selection.iterator();iterator.hasNext();){ |
Also available in: Unified diff
ref #9448: remove E4 from file names - bulkeditor package