Revision 843eefc4
Added by Katja Luther almost 3 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/handler/MergeGroupHandlerE4.java | ||
---|---|---|
28 | 28 |
import eu.etaxonomy.cdm.model.reference.Reference; |
29 | 29 |
import eu.etaxonomy.cdm.strategy.merge.MergeException; |
30 | 30 |
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditorQuery; |
31 |
import eu.etaxonomy.taxeditor.bulkeditor.e4.BulkEditorE4;
|
|
31 |
import eu.etaxonomy.taxeditor.bulkeditor.e4.BulkEditor; |
|
32 | 32 |
import eu.etaxonomy.taxeditor.bulkeditor.input.AbstractBulkEditorInput; |
33 | 33 |
import eu.etaxonomy.taxeditor.l10n.Messages; |
34 | 34 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
... | ... | |
48 | 48 |
@Named(IServiceConstants.ACTIVE_PART)MPart activePart, |
49 | 49 |
@Named(IServiceConstants.ACTIVE_SHELL)Shell shell) { |
50 | 50 |
|
51 |
BulkEditorE4 editor = (BulkEditorE4) activePart.getObject();
|
|
51 |
BulkEditor editor = (BulkEditor) activePart.getObject();
|
|
52 | 52 |
AbstractBulkEditorInput input = editor.getEditorInput(); |
53 | 53 |
Set<CdmBase> mergedCandidates = new HashSet<>(); |
54 | 54 |
|
... | ... | |
141 | 141 |
public boolean canExecute(@Named(IServiceConstants.ACTIVE_PART)MPart activePart, |
142 | 142 |
MHandledMenuItem menuItem) { |
143 | 143 |
boolean canExecute = false; |
144 |
BulkEditorE4 editor = (BulkEditorE4) activePart.getObject();
|
|
144 |
BulkEditor editor = (BulkEditor) activePart.getObject();
|
|
145 | 145 |
canExecute = !editor.getEditorInput().getMergeCandidates().isEmpty() |
146 | 146 |
&& editor.getEditorInput().getMergeTarget()!=null; |
147 | 147 |
menuItem.setVisible(canExecute); |
Also available in: Unified diff
ref #9448: remove E4 from file names - bulkeditor package