Revision b71d3062
Added by Patrick Plitzner almost 10 years ago
- use utility method
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/dataimport/DataImportEditorContextMenu.java | ||
---|---|---|
31 | 31 |
import eu.etaxonomy.cdm.ext.occurrence.gbif.GbifResponse; |
32 | 32 |
import eu.etaxonomy.cdm.model.occurrence.SpecimenOrObservationBase; |
33 | 33 |
import eu.etaxonomy.taxeditor.editor.EditorUtil; |
34 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
|
34 | 35 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
35 | 36 |
|
36 | 37 |
public class DataImportEditorContextMenu extends CompoundContributionItem { |
... | ... | |
47 | 48 |
@Override |
48 | 49 |
public void fill(Menu menu, int index) { |
49 | 50 |
final IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow(); |
50 |
final IEditorPart activeEditor = window.getActivePage().getActiveEditor();
|
|
51 |
final IEditorPart activeEditor = AbstractUtility.getActiveEditor();
|
|
51 | 52 |
final ISelection selection = window.getActivePage().getSelection(); |
52 | 53 |
if(selection instanceof StructuredSelection){ |
53 | 54 |
final StructuredSelection structuredSelection = (StructuredSelection)selection; |
Also available in: Unified diff