public class E4Workbench extends java.lang.Object implements IWorkbench
IWorkbench| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FORCED_PERSPECTIVE_ID
The argument for the perspective to activate
Value is: perspectiveId |
static java.lang.String |
FORCED_SHOW_LOCATION
The argument for the whether to forcefully show the location in the window title (set on the
command line)
Value is: forcedShowLocation |
static java.lang.String |
INITIAL_WORKBENCH_MODEL_URI
The argument for the
URI of the initial workbench model Value is: initialWorkbenchModelURI |
static java.lang.String |
INSTANCE_LOCATION
The argument for the
Location of the running instance Value is: instanceLocation |
static java.lang.String |
LOCAL_ACTIVE_SHELL
The argument for the locale active shell
Value is: localActiveShell |
static java.lang.String |
NO_SAVED_MODEL_FOUND |
static java.lang.String |
RENDERER_FACTORY_URI
The argument for the renderer factory to use
Value is: rendererFactoryUri |
static java.lang.String |
RTL_MODE
The argument for setting RTL mode
Value is: dir |
APPLICATION_CONTEXT_KEY, CLEAR_PERSISTED_STATE, CSS_RESOURCE_URI_ARG, CSS_URI_ARG, LIFE_CYCLE_URI_ARG, MODEL_RESOURCE_HANDLER, ON_TOP, PERSIST_STATE, PRESENTATION_URI_ARG, XMI_URI_ARG| Constructor and Description |
|---|
E4Workbench(MApplicationElement uiRoot,
IEclipseContext applicationContext)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
close()
Close the workbench instance
|
void |
createAndRunUI(MApplicationElement uiRoot) |
protected java.lang.String |
createId() |
MApplication |
getApplication() |
IEclipseContext |
getContext() |
java.lang.String |
getId() |
static IEclipseContext |
getServiceContext() |
static IEclipseContext |
initializeContext(IEclipseContext parentContext,
MContext contextModel)
Create the context chain.
|
void |
instantiateRenderer() |
boolean |
isRestart() |
boolean |
restart()
restart the workbench
|
public static final java.lang.String LOCAL_ACTIVE_SHELL
localActiveShellpublic static final java.lang.String INITIAL_WORKBENCH_MODEL_URI
URI of the initial workbench model initialWorkbenchModelURIpublic static final java.lang.String INSTANCE_LOCATION
Location of the running instance instanceLocationpublic static final java.lang.String RENDERER_FACTORY_URI
rendererFactoryUripublic static final java.lang.String RTL_MODE
dirpublic static final java.lang.String FORCED_PERSPECTIVE_ID
perspectiveIdpublic static final java.lang.String NO_SAVED_MODEL_FOUND
public static final java.lang.String FORCED_SHOW_LOCATION
forcedShowLocationpublic E4Workbench(MApplicationElement uiRoot,
IEclipseContext applicationContext)
uiRoot - the root UI elementapplicationContext - the root contextpublic IEclipseContext getContext()
IEclipseContext for the main applicationpublic final java.lang.String getId()
getId in interface IWorkbenchprotected java.lang.String createId()
public void createAndRunUI(MApplicationElement uiRoot)
uiRoot - public void instantiateRenderer()
public boolean close()
IWorkbenchclose in interface IWorkbenchtrue if the shutdown succeedspublic boolean restart()
IWorkbenchrestart in interface IWorkbenchfalse if the restart is abortedpublic boolean isRestart()
true when the workbench should be restartedpublic static IEclipseContext getServiceContext()
public MApplication getApplication()
getApplication in interface IWorkbenchpublic static IEclipseContext initializeContext(IEclipseContext parentContext,
MContext contextModel)
parentContext - The parent contextcontextModel - needs a context createdIEclipseContext