Revision bd122e26
Added by Katja Luther over 1 year ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/concept/e4/handler/OpenRelatedConceptHandlerE4.java | ||
---|---|---|
28 | 28 |
import eu.etaxonomy.taxeditor.bulkeditor.e4.BulkEditor; |
29 | 29 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
30 | 30 |
import eu.etaxonomy.taxeditor.editor.l10n.Messages; |
31 |
import eu.etaxonomy.taxeditor.editor.name.e4.TaxonNameEditor;
|
|
31 |
import eu.etaxonomy.taxeditor.editor.name.e4.TaxonEditor; |
|
32 | 32 |
import eu.etaxonomy.taxeditor.editor.view.concept.e4.ConceptViewPartE4; |
33 | 33 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
34 | 34 |
import eu.etaxonomy.taxeditor.workbench.WorkbenchUtility; |
... | ... | |
46 | 46 |
@Optional@Named(IServiceConstants.ACTIVE_SELECTION) IStructuredSelection selection, |
47 | 47 |
EModelService modelService, EPartService partService, MApplication application) { |
48 | 48 |
|
49 |
TaxonNameEditor editor = null;
|
|
49 |
TaxonEditor editor = null; |
|
50 | 50 |
BulkEditor bulkEditor = null; |
51 | 51 |
TaxonRelationship taxonRelationship = (TaxonRelationship) selection.getFirstElement(); |
52 | 52 |
|
53 | 53 |
ConceptViewPartE4 conceptView = (ConceptViewPartE4) activePart.getObject(); |
54 | 54 |
|
55 | 55 |
Object e4WrappedPart = WorkbenchUtility.getE4WrappedPart(conceptView.getSelectionProvidingPart()); |
56 |
if(e4WrappedPart instanceof TaxonNameEditor){
|
|
57 |
editor = (TaxonNameEditor) e4WrappedPart;
|
|
56 |
if(e4WrappedPart instanceof TaxonEditor){ |
|
57 |
editor = (TaxonEditor) e4WrappedPart; |
|
58 | 58 |
} |
59 | 59 |
else if(e4WrappedPart instanceof BulkEditor){ |
60 | 60 |
bulkEditor = (BulkEditor) e4WrappedPart; |
Also available in: Unified diff
rename TaxonNameEditor to TaxonEditor and NameViewerE4 to NameViewer