Revision bd122e26
Added by Katja Luther over 1 year ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/e4/handler/MoveDescriptionToOtherTaxonSetNameInSourceHandlerE5.java | ||
---|---|---|
37 | 37 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
38 | 38 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
39 | 39 |
import eu.etaxonomy.taxeditor.editor.l10n.Messages; |
40 |
import eu.etaxonomy.taxeditor.editor.name.e4.TaxonNameEditor;
|
|
40 |
import eu.etaxonomy.taxeditor.editor.name.e4.TaxonEditor; |
|
41 | 41 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.e4.FactualDataPartE4; |
42 | 42 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.operation.MoveDescriptionToOtherTaxonOperation; |
43 | 43 |
import eu.etaxonomy.taxeditor.model.FeatureNodeContainer; |
... | ... | |
59 | 59 |
private UUID oldAcceptedTaxonNodeUuid; |
60 | 60 |
private UUID newAcceptedTaxonUuid; |
61 | 61 |
private UUID oldAcceptedTaxonUuid; |
62 |
private TaxonNameEditor editor;
|
|
62 |
private TaxonEditor editor; |
|
63 | 63 |
private MApplication application; |
64 | 64 |
private EModelService modelService; |
65 | 65 |
private EPartService partService; |
... | ... | |
76 | 76 |
|
77 | 77 |
FactualDataPartE4 factualDataPart = (FactualDataPartE4) activePart.getObject(); |
78 | 78 |
Object e4WrappedPart = WorkbenchUtility.getE4WrappedPart(factualDataPart.getSelectionProvidingPart()); |
79 |
if(e4WrappedPart instanceof TaxonNameEditor){
|
|
80 |
editor = (TaxonNameEditor) e4WrappedPart;
|
|
79 |
if(e4WrappedPart instanceof TaxonEditor){ |
|
80 |
editor = (TaxonEditor) e4WrappedPart; |
|
81 | 81 |
|
82 | 82 |
} |
83 | 83 |
|
... | ... | |
179 | 179 |
FactualDataPartE4 factualDataPart = (FactualDataPartE4) activePart.getObject(); |
180 | 180 |
|
181 | 181 |
Object e4WrappedPart = WorkbenchUtility.getE4WrappedPart(factualDataPart.getSelectionProvidingPart()); |
182 |
if(e4WrappedPart instanceof TaxonNameEditor){
|
|
182 |
if(e4WrappedPart instanceof TaxonEditor){ |
|
183 | 183 |
ISelection selection = factualDataPart.getViewer().getSelection(); |
184 | 184 |
if(selection instanceof IStructuredSelection){ |
185 | 185 |
Object firstElement = ((IStructuredSelection) selection).getFirstElement(); |
Also available in: Unified diff
rename TaxonNameEditor to TaxonEditor and NameViewerE4 to NameViewer