public interface IPresentationEngine
Modifier and Type | Field and Description |
---|---|
static String |
ACTIVE
This is the tag name that indicates that the model element is active.
|
static String |
ADORNMENT_PIN
This is a Tag that when applied to an MUILabel element will cause whatever Image is to be
shown to be adorned with the 'pinned' affordance.
|
static String |
ANIMATIONS_ENABLED
This is a Boolean preference used to control animations in the application
|
static String |
CUSTOM_RENDERER_KEY
This is a persistedState 'key' whose value is expected to be the URI of a subclass of
ABstractPartRenderer that is to be used to render the element
|
static String |
DISABLED_ICON_IMAGE_KEY
This key should be used to add an optional String to an element that is a URI to the elements
disabled icon.
|
static String |
DRAGGABLE
This is the tag name that enables the DND support for the element.
|
static String |
HIDDEN_EXPLICITLY
This tag can be used by the renderer implementation to decide that the user interface element
has been hidden.
|
static String |
MAXIMIZED
When added to an element's 'tags' this should cause the presentation to minimize all other
presentation elements.
|
static String |
MINIMIZED
When added to an element's 'tags' this should cause the presentation to move that element to
the trim.
|
static String |
MINIMIZED_BY_ZOOM
This tag should be applied to any element that had its MINIMIZED tag set due to a different
element going maximized.
|
static String |
NO_AUTO_COLLAPSE
Don't remove the element from the display even if it has no displayable children
|
static String |
NO_CLOSE
When applied as a tag to an MPlaceholder inhibits the display of the close affordance.
|
static String |
NO_MOVE
When applied as a tag to an MUIElement inhibits moving the element (ie. through DnD...
|
static String |
NO_TITLE
When applied as a tag to an MUILabel inhibits the display of the label text
|
static String |
ORIENTATION_HORIZONTAL
This tag can be applied to an element as a hint to the renderers that the element would
prefer to be horizontal.
|
static String |
ORIENTATION_VERTICAL
This tag can be applied to an element as a hint to the renderers that the element would
prefer to be vertical.
|
static String |
OVERRIDE_ICON_IMAGE_KEY
This key should be used to add an optional org.eclipse.swt.graphics.Image to an elements
TRANSIENTDATA.
|
static String |
OVERRIDE_TITLE_TOOL_TIP_KEY
This key should be used to add an optional String to an elements TRANSIENTDATA.
|
static String |
SERVICE_NAME
The ID to access the service in the
IEclipseContext |
static String |
SPLIT_HORIZONTAL
This tag can be applied to an element (usually an MPart) to indicate that the element should
be split with the result being side by side.
|
static String |
SPLIT_VERTICAL
This tag can be applied to an element (usually an MPart) to indicate that the element should
be split with the result being one above the other.
|
static String |
STANDALONE
Declare the stack as containing a singe 'standalone' view.
|
static String |
STYLE_OVERRIDE_KEY
This key is used to store information in the 'persistentData' map which will be used to
override the initial style of an element at rendering time.
|
static String |
WINDOW_MAXIMIZED_TAG
When applied to an MWindow causes the renderer to maximize the resulting control.
|
static String |
WINDOW_MINIMIZED_TAG
When applied to an MWindow causes the renderer to minimize the resulting control.
|
Modifier and Type | Method and Description |
---|---|
Object |
createGui(MUIElement element)
Creates and returns the UI element corresponding to the given model element.
|
Object |
createGui(MUIElement element,
Object parentWidget,
IEclipseContext parentContext)
Creates and returns the UI element for the given model element.
|
void |
focusGui(MUIElement element)
Attempts to set the UI focus onto the given element.
|
void |
removeGui(MUIElement element)
Remove the UI element created for this model element.
|
Object |
run(MApplicationElement uiRoot,
IEclipseContext appContext)
Run the UI.
|
void |
stop()
Shuts down the presentation engine
|
static final String SERVICE_NAME
IEclipseContext
static final String NO_TITLE
static final String NO_CLOSE
static final String STANDALONE
static final String NO_AUTO_COLLAPSE
static final String NO_MOVE
static final String HIDDEN_EXPLICITLY
static final String STYLE_OVERRIDE_KEY
static final String WINDOW_MINIMIZED_TAG
static final String WINDOW_MAXIMIZED_TAG
static final String MINIMIZED
static final String MAXIMIZED
static final String MINIMIZED_BY_ZOOM
static final String ORIENTATION_HORIZONTAL
static final String ORIENTATION_VERTICAL
static final String SPLIT_HORIZONTAL
static final String SPLIT_VERTICAL
static final String DISABLED_ICON_IMAGE_KEY
static final String OVERRIDE_ICON_IMAGE_KEY
static final String OVERRIDE_TITLE_TOOL_TIP_KEY
static final String ADORNMENT_PIN
static final String ANIMATIONS_ENABLED
static final String CUSTOM_RENDERER_KEY
static final String DRAGGABLE
static final String ACTIVE
Object createGui(MUIElement element, Object parentWidget, IEclipseContext parentContext)
element
- the model elementparentWidget
- the parentparentContext
- the context within which this element is being renderedObject createGui(MUIElement element)
element
- the model elementvoid removeGui(MUIElement element)
element
- the model element whose UI element should removedvoid focusGui(MUIElement element)
element
- Object run(MApplicationElement uiRoot, IEclipseContext appContext)
uiRoot
- appContext
- void stop()
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.