Revision eaff1338
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/concept/e4/handler/OpenRelatedConceptHandlerE4.java | ||
---|---|---|
23 | 23 |
import eu.etaxonomy.cdm.model.taxon.TaxonRelationship; |
24 | 24 |
import eu.etaxonomy.taxeditor.bulkeditor.BulkEditor; |
25 | 25 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
26 |
import eu.etaxonomy.taxeditor.editor.MultiPageTaxonEditor; |
|
27 | 26 |
import eu.etaxonomy.taxeditor.editor.l10n.Messages; |
27 |
import eu.etaxonomy.taxeditor.editor.name.e4.TaxonNameEditorE4; |
|
28 | 28 |
import eu.etaxonomy.taxeditor.editor.view.concept.e4.ConceptViewPartE4; |
29 | 29 |
import eu.etaxonomy.taxeditor.model.LineSelection; |
30 | 30 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
... | ... | |
42 | 42 |
public void execute(@Named(IServiceConstants.ACTIVE_PART) MPart activePart, |
43 | 43 |
@Optional@Named(IServiceConstants.ACTIVE_SELECTION) TaxonRelationship taxonRelationship) { |
44 | 44 |
|
45 |
MultiPageTaxonEditor editor = null;
|
|
45 |
TaxonNameEditorE4 editor = null;
|
|
46 | 46 |
BulkEditor bulkEditor = null; |
47 | 47 |
|
48 | 48 |
ConceptViewPartE4 conceptView = (ConceptViewPartE4) activePart.getObject(); |
49 | 49 |
|
50 | 50 |
Object e4WrappedPart = WorkbenchUtility.getE4WrappedPart(conceptView.getSelectionProvidingPart()); |
51 |
if(e4WrappedPart instanceof MultiPageTaxonEditor){
|
|
52 |
editor = (MultiPageTaxonEditor) e4WrappedPart;
|
|
51 |
if(e4WrappedPart instanceof TaxonNameEditorE4){
|
|
52 |
editor = (TaxonNameEditorE4) e4WrappedPart;
|
|
53 | 53 |
} |
54 | 54 |
else if(e4WrappedPart instanceof BulkEditor){ |
55 | 55 |
bulkEditor = (BulkEditor) e4WrappedPart; |
Also available in: Unified diff
ref #6595 refactor selection handling to migrated name editor