Revision 7f6ce378
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/AbstractUtility.java | ||
---|---|---|
558 | 558 |
IEditorPart activeEditor = getActivePage().getActiveEditor(); |
559 | 559 |
Object activePart = getActivePage().getActivePart(); |
560 | 560 |
if(activeEditor==null){ |
561 |
activePart = TaxeditorStorePlugin.getDefault().getWorkbench().getService(EPartService.class).getActivePart(); |
|
561 |
activePart = TaxeditorStorePlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getService(EPartService.class).getActivePart();
|
|
562 | 562 |
} |
563 | 563 |
Object wrappedPart = WorkbenchUtility.getE4WrappedPart(activePart); |
564 | 564 |
return wrappedPart!=null?wrappedPart:activeEditor; |
Also available in: Unified diff
ref #6925 correctly acces EPartService