Revision 3c6ff11f
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/defaultHandler/OpenReferencingObjectsView.java | ||
---|---|---|
3 | 3 |
import org.eclipse.core.commands.AbstractHandler; |
4 | 4 |
import org.eclipse.core.commands.ExecutionEvent; |
5 | 5 |
import org.eclipse.core.commands.ExecutionException; |
6 |
import org.eclipse.e4.ui.workbench.modeling.EPartService; |
|
7 |
import org.eclipse.e4.ui.workbench.modeling.EPartService.PartState; |
|
6 | 8 |
|
7 |
import eu.etaxonomy.taxeditor.model.AbstractUtility;
|
|
9 |
import eu.etaxonomy.taxeditor.store.internal.TaxeditorStorePlugin;
|
|
8 | 10 |
|
9 | 11 |
public class OpenReferencingObjectsView extends AbstractHandler { |
10 | 12 |
|
11 | 13 |
@Override |
12 | 14 |
public Object execute(ExecutionEvent event) throws ExecutionException { |
13 |
return AbstractUtility.showView("eu.etaxonomy.taxeditor.bulkeditor.view.referencingobjects"); |
|
15 |
TaxeditorStorePlugin.getDefault().getWorkbench().getService(EPartService.class).showPart( |
|
16 |
eu.etaxonomy.taxeditor.bulkeditor.AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_BULKEDITOR_REFERENCINGOBJECTS_E4_REFERENCINGOBJECTSVIEWE4, |
|
17 |
PartState.ACTIVATE); |
|
18 |
return null; |
|
14 | 19 |
} |
15 | 20 |
|
16 | 21 |
} |
Also available in: Unified diff
ref #6910 Fix "Open in..." for referencing objects view