public interface IWorkbench
IEclipseContext
of the applicationIWorkbench
instances in one
OSGi-InstanceModifier and Type | Field and Description |
---|---|
static String |
APPLICATION_CONTEXT_KEY
Context key to retrieve the application context in most applications
(like e.g., e4).
|
static String |
CLEAR_PERSISTED_STATE
The argument for whether the persisted state should be cleared on startup
Value is: clearPersistedState |
static String |
CSS_RESOURCE_URI_ARG
The argument for the
URI of the resources referenced from the application CSS file Value is: applicationCSSResources |
static String |
CSS_URI_ARG
|
static String |
LIFE_CYCLE_URI_ARG
|
static String |
MODEL_RESOURCE_HANDLER
The argument for the resource handler to use
Value is: modelResourceHandler |
static String |
ON_TOP
This named context parameter is used to specify whether a
MPart
or a MPlaceholder are shown on top, which means the contents of
it can be seen by the user in the UI. |
static String |
PERSIST_STATE
The argument for whether the workbench should save and restore its state
< Value is: persistState |
static String |
PRESENTATION_URI_ARG
|
static String |
XMI_URI_ARG
|
Modifier and Type | Method and Description |
---|---|
boolean |
close()
Close the workbench instance
|
MApplication |
getApplication() |
String |
getId() |
boolean |
restart()
restart the workbench
|
static final String CLEAR_PERSISTED_STATE
clearPersistedState
static final String CSS_RESOURCE_URI_ARG
URI
of the resources referenced from the application CSS file applicationCSSResources
static final String CSS_URI_ARG
static final String LIFE_CYCLE_URI_ARG
static final String MODEL_RESOURCE_HANDLER
modelResourceHandler
static final String PERSIST_STATE
persistState
static final String PRESENTATION_URI_ARG
static final String XMI_URI_ARG
static final String APPLICATION_CONTEXT_KEY
EclipseContextFactory.getServiceContext(org.osgi.framework.BundleContext)
static final String ON_TOP
MPart
or a MPlaceholder
are shown on top, which means the contents of
it can be seen by the user in the UI.
This means clients can obtain the state of being on top by asking the
part's context for the ON_TOP
key.
Note that also objects created with a parts' context can obtain this
ON_TOP
key, e.g., MToolControl
.
@Inject @Optional private void onTop(@Named(IWorkbench.ON_TOP) Boolean onTop) { if (onTop != null && onTop.booleanValue()) { // ... do something when element is on top } }
boolean close()
true
if the shutdown succeedsMApplication getApplication()
String getId()
boolean restart()
false
if the restart is aborted
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.