Revision 9b135851
Added by Katja Luther over 1 year ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/e4/handler/MoveDescriptionElementsSetNameInSourceHandlerE5.java | ||
---|---|---|
48 | 48 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
49 | 49 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
50 | 50 |
import eu.etaxonomy.taxeditor.editor.l10n.Messages; |
51 |
import eu.etaxonomy.taxeditor.editor.name.e4.TaxonNameEditorE4;
|
|
51 |
import eu.etaxonomy.taxeditor.editor.name.e4.TaxonNameEditor; |
|
52 | 52 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.e4.FactualDataPartE4; |
53 | 53 |
import eu.etaxonomy.taxeditor.editor.view.descriptive.operation.MoveDescriptionElementsOperation; |
54 | 54 |
import eu.etaxonomy.taxeditor.model.FeatureNodeContainer; |
... | ... | |
68 | 68 |
public class MoveDescriptionElementsSetNameInSourceHandlerE5 implements IPostOperationEnabled{ |
69 | 69 |
private UUID newAcceptedTaxonNodeUuid; |
70 | 70 |
private UUID oldAcceptedTaxonNodeUuid; |
71 |
private TaxonNameEditorE4 editor;
|
|
71 |
private TaxonNameEditor editor; |
|
72 | 72 |
private MApplication application; |
73 | 73 |
private EModelService modelService; |
74 | 74 |
private EPartService partService; |
... | ... | |
86 | 86 |
IStructuredSelection viewselection = (IStructuredSelection) factualDataPart.getViewer().getSelection(); |
87 | 87 |
|
88 | 88 |
Object e4WrappedPart = WorkbenchUtility.getE4WrappedPart(factualDataPart.getSelectionProvidingPart()); |
89 |
if(e4WrappedPart instanceof TaxonNameEditorE4){
|
|
90 |
editor = (TaxonNameEditorE4) e4WrappedPart;
|
|
89 |
if(e4WrappedPart instanceof TaxonNameEditor){ |
|
90 |
editor = (TaxonNameEditor) e4WrappedPart; |
|
91 | 91 |
} |
92 | 92 |
Taxon actualTaxon= null; |
93 | 93 |
|
... | ... | |
228 | 228 |
FactualDataPartE4 factualDataPart = (FactualDataPartE4) activePart.getObject(); |
229 | 229 |
boolean isComputedDisabled = PreferencesUtil.isComputedDesciptionHandlingDisabled(); |
230 | 230 |
Object e4WrappedPart = WorkbenchUtility.getE4WrappedPart(factualDataPart.getSelectionProvidingPart()); |
231 |
if(e4WrappedPart instanceof TaxonNameEditorE4){
|
|
231 |
if(e4WrappedPart instanceof TaxonNameEditor){ |
|
232 | 232 |
ISelection selection = factualDataPart.getViewer().getSelection(); |
233 | 233 |
if(selection instanceof IStructuredSelection){ |
234 |
boolean selectionProviding = factualDataPart.getSelectionProvidingPart().getObject() instanceof TaxonNameEditorE4;
|
|
234 |
boolean selectionProviding = factualDataPart.getSelectionProvidingPart().getObject() instanceof TaxonNameEditor; |
|
235 | 235 |
Object firstElement = ((IStructuredSelection) selection).getFirstElement(); |
236 | 236 |
canExecute = ((firstElement instanceof FeatureNodeContainer && !(((FeatureNodeContainer)firstElement).getContainerTree().getDescription() instanceof TaxonNameDescription)) |
237 | 237 |
|| (firstElement instanceof DescriptionElementBase && !(((DescriptionElementBase)firstElement).getInDescription() instanceof TaxonNameDescription))) |
Also available in: Unified diff
rename TaxonNameEditor and other classes and remove E$