Revision bce766a1
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/handler/RemoveMergeCandidateHandlerE4.java | ||
---|---|---|
14 | 14 |
import org.eclipse.e4.ui.model.application.ui.basic.MPart; |
15 | 15 |
import org.eclipse.e4.ui.services.IServiceConstants; |
16 | 16 |
|
17 |
import eu.etaxonomy.taxeditor.bulkeditor.e4.AnnotatedTableItem;
|
|
17 |
import eu.etaxonomy.cdm.model.common.CdmBase;
|
|
18 | 18 |
import eu.etaxonomy.taxeditor.bulkeditor.e4.BulkEditorE4; |
19 | 19 |
|
20 | 20 |
/** |
... | ... | |
27 | 27 |
|
28 | 28 |
|
29 | 29 |
@Execute |
30 |
public void execute(@Named(IServiceConstants.ACTIVE_SELECTION)AnnotatedTableItem item,
|
|
30 |
public void execute(@Named(IServiceConstants.ACTIVE_SELECTION)CdmBase selection,
|
|
31 | 31 |
@Named(IServiceConstants.ACTIVE_PART)MPart activePart) { |
32 | 32 |
BulkEditorE4 editor = (BulkEditorE4) activePart.getObject(); |
33 |
item.setMergeCandidate(false);
|
|
33 |
editor.getEditorInput().removeMergeCandidate(selection);
|
|
34 | 34 |
editor.refresh(); |
35 | 35 |
} |
36 | 36 |
} |
Also available in: Unified diff
ref #6932 Refactor merge annotating