Interface MApplication
- All Superinterfaces:
MApplicationElement
,MBindings
,MBindingTableContainer
,MContext
,MElementContainer<MWindow>
,MHandlerContainer
,MLocalizable
,MMenuContributions
,MPartDescriptorContainer
,MSnippetContainer
,MToolBarContributions
,MTrimContributions
,MUIElement
- All Known Implementing Classes:
ApplicationImpl
The MApplication acts as the root of the UI Model. It's children are the MWindows representing the UI for this application. It also owns the application's context (which is hooked to the OSGI context, allowing access not only to its own runtime information but also to any registered OSGI service.
It also owns a number of caches which, while independent of the UI itself are used by the application to populate new windows or to define state that is expected to be the same for all windows:
- Keybindings, Handlers, Commands
- Part Descriptors (to support a 'Show View' dialog...)
- Snippets of model (such as saved perspectives...)
- Since:
- 1.0
- Restriction:
- This interface is not intended to be implemented by clients.
The following features are supported:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the 'Addons' containment reference list.Returns the value of the 'Categories' containment reference list.getCommand
(String elementId) Returns the model element for the command identified via the elementId or null if the element cannot be found.Returns the value of the 'Commands' containment reference list.Methods inherited from interface org.eclipse.e4.ui.model.application.MApplicationElement
getContributorURI, getElementId, getPersistedState, getTags, getTransientData, setContributorURI, setElementId
Methods inherited from interface org.eclipse.e4.ui.model.application.commands.MBindings
getBindingContexts
Methods inherited from interface org.eclipse.e4.ui.model.application.commands.MBindingTableContainer
getBindingTables, getRootContext
Methods inherited from interface org.eclipse.e4.ui.model.application.ui.MContext
getContext, getProperties, getVariables, setContext
Methods inherited from interface org.eclipse.e4.ui.model.application.ui.MElementContainer
getChildren, getSelectedElement, setSelectedElement
Methods inherited from interface org.eclipse.e4.ui.model.application.commands.MHandlerContainer
getHandlers
Methods inherited from interface org.eclipse.e4.ui.model.application.ui.MLocalizable
updateLocalization
Methods inherited from interface org.eclipse.e4.ui.model.application.ui.menu.MMenuContributions
getMenuContributions
Methods inherited from interface org.eclipse.e4.ui.model.application.descriptor.basic.MPartDescriptorContainer
getDescriptors
Methods inherited from interface org.eclipse.e4.ui.model.application.ui.MSnippetContainer
getSnippets
Methods inherited from interface org.eclipse.e4.ui.model.application.ui.menu.MToolBarContributions
getToolBarContributions
Methods inherited from interface org.eclipse.e4.ui.model.application.ui.menu.MTrimContributions
getTrimContributions
Methods inherited from interface org.eclipse.e4.ui.model.application.ui.MUIElement
getAccessibilityPhrase, getContainerData, getCurSharedRef, getLocalizedAccessibilityPhrase, getParent, getRenderer, getVisibleWhen, getWidget, isOnTop, isToBeRendered, isVisible, setAccessibilityPhrase, setContainerData, setCurSharedRef, setOnTop, setParent, setRenderer, setToBeRendered, setVisible, setVisibleWhen, setWidget
-
Method Details
-
getCommands
Returns the value of the 'Commands' containment reference list. The list contents are of typeMCommand
.This is the list of MCommand elements available in the application. Commands represent some logical operation. The actual implementation of the operation is determined by the MHandler chosen by the system based on the current execution context.
- Returns:
- the value of the 'Commands' containment reference list.
-
getAddons
Returns the value of the 'Addons' containment reference list. The list contents are of typeMAddon
.This is the ordered list of MAddons for this model. The individual addons will be created through injection after the model loads but before it is rendered.
- Returns:
- the value of the 'Addons' containment reference list.
-
getCategories
Returns the value of the 'Categories' containment reference list. The list contents are of typeMCategory
.Developers: Add more detailed documentation by editing this comment in org.eclipse.ui.model.workbench/model/UIElements.ecore. There is a GenModel/documentation node under each type and attribute.
- Returns:
- the value of the 'Categories' containment reference list.
-
getCommand
Returns the model element for the command identified via the elementId or null if the element cannot be found.- Parameters:
elementId
- the ID of the command.- Returns:
- the model element for the command identified via the elementId or null if the element cannot be found.
- Since:
- 1.2
-