public interface IPresentationEngine
Modifier and Type | Field and Description |
---|---|
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 |
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 |
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 NO_AUTO_COLLAPSE
static final String NO_MOVE
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 DISABLED_ICON_IMAGE_KEY
static final String OVERRIDE_ICON_IMAGE_KEY
static final String OVERRIDE_TITLE_TOOL_TIP_KEY
static final String ANIMATIONS_ENABLED
static final String CUSTOM_RENDERER_KEY
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.