Revision 9b135851
Added by Katja Luther over 1 year ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/media/handler/AbstractMoveImageHandler.java | ||
---|---|---|
25 | 25 |
import eu.etaxonomy.cdm.model.media.Media; |
26 | 26 |
import eu.etaxonomy.cdm.model.taxon.Taxon; |
27 | 27 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
28 |
import eu.etaxonomy.taxeditor.editor.e4.TaxonEditorInputE4;
|
|
29 |
import eu.etaxonomy.taxeditor.editor.name.e4.TaxonNameEditorE4;
|
|
28 |
import eu.etaxonomy.taxeditor.editor.e4.TaxonEditorInput; |
|
29 |
import eu.etaxonomy.taxeditor.editor.name.e4.TaxonNameEditor; |
|
30 | 30 |
import eu.etaxonomy.taxeditor.editor.view.media.e4.MediaViewPartE4; |
31 | 31 |
import eu.etaxonomy.taxeditor.editor.view.media.operation.MoveMediaInListOperation; |
32 | 32 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
... | ... | |
46 | 46 |
|
47 | 47 |
MediaViewPartE4 mediaView = (MediaViewPartE4) activePart.getObject(); |
48 | 48 |
|
49 |
TaxonNameEditorE4 editor = null;
|
|
49 |
TaxonNameEditor editor = null; |
|
50 | 50 |
Object e4WrappedPart = WorkbenchUtility.getE4WrappedPart(mediaView.getSelectionProvidingPart()); |
51 |
if (e4WrappedPart instanceof TaxonNameEditorE4) {
|
|
52 |
editor = (TaxonNameEditorE4) e4WrappedPart;
|
|
53 |
TaxonEditorInputE4 input = editor.getEditorInput();
|
|
51 |
if (e4WrappedPart instanceof TaxonNameEditor) { |
|
52 |
editor = (TaxonNameEditor) e4WrappedPart; |
|
53 |
TaxonEditorInput input = editor.getEditorInput(); |
|
54 | 54 |
Taxon taxon =input.getTaxon(); |
55 | 55 |
|
56 | 56 |
TreeSelection selection = (TreeSelection) mediaView.getViewer().getSelection(); |
Also available in: Unified diff
rename TaxonNameEditor and other classes and remove E$