public class WorkbenchUtility
extends java.lang.Object
Constructor and Description |
---|
WorkbenchUtility() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.e4.ui.model.application.ui.basic.MPart |
findSavablePart(ISelectionElementEditingPart part) |
static org.eclipse.e4.ui.model.application.ui.basic.MPart |
getActiveEditorPart(org.eclipse.e4.ui.workbench.modeling.EPartService partService) |
static java.io.File |
getBaseLocation() |
static java.lang.Object |
getE4WrappedPart(java.lang.Object activePart)
Checks if the activePart is an E4 wrapper for a legacy part and returns
that part
|
static org.eclipse.e4.ui.model.application.ui.basic.MPartStack |
getEditorAreaPartStack(org.eclipse.e4.ui.model.application.MApplication application,
org.eclipse.e4.ui.workbench.modeling.EModelService modelService) |
static org.eclipse.e4.ui.model.application.ui.basic.MPartStack |
getPartStack(java.lang.String stackId,
org.eclipse.e4.ui.model.application.MApplication application,
org.eclipse.e4.ui.workbench.modeling.EModelService modelService) |
static boolean |
openWebpage(java.net.URL url) |
public static org.eclipse.e4.ui.model.application.ui.basic.MPart getActiveEditorPart(org.eclipse.e4.ui.workbench.modeling.EPartService partService)
public static java.lang.Object getE4WrappedPart(java.lang.Object activePart)
activePart
- the e4 wrappernull
public static java.io.File getBaseLocation()
public static org.eclipse.e4.ui.model.application.ui.basic.MPart findSavablePart(ISelectionElementEditingPart part)
public static org.eclipse.e4.ui.model.application.ui.basic.MPartStack getPartStack(java.lang.String stackId, org.eclipse.e4.ui.model.application.MApplication application, org.eclipse.e4.ui.workbench.modeling.EModelService modelService)
public static org.eclipse.e4.ui.model.application.ui.basic.MPartStack getEditorAreaPartStack(org.eclipse.e4.ui.model.application.MApplication application, org.eclipse.e4.ui.workbench.modeling.EModelService modelService)
public static boolean openWebpage(java.net.URL url)
Copyright © 2007-2018. All Rights Reserved.