Revision 7f6ce378
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/handler/defaultHandler/DefaultOpenSpecimenEditorForTypeSpecimenHandler.java | ||
---|---|---|
26 | 26 |
@Override |
27 | 27 |
protected void open(ExecutionEvent event, SpecimenTypeDesignation entity) { |
28 | 28 |
DerivateViewEditorInput input = new DerivateViewEditorInput(entity.getUuid()); |
29 |
MPart part = TaxeditorStorePlugin.getDefault().getWorkbench().getService(EPartService.class).showPart( |
|
29 |
MPart part = TaxeditorStorePlugin.getDefault().getWorkbench().getActiveWorkbenchWindow().getService(EPartService.class).showPart(
|
|
30 | 30 |
AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_EDITOR_VIEW_DERIVATE_DERIVATEVIEW, PartState.ACTIVATE); |
31 | 31 |
DerivateView derivateView = (DerivateView) part.getObject(); |
32 | 32 |
derivateView.init(input); |
Also available in: Unified diff
ref #6925 correctly acces EPartService