Interface MContext
- All Known Subinterfaces:
MApplication
,MCompositePart
,MDialog
,MPart
,MPerspective
,MPopupMenu
,MTrimmedWindow
,MWindow
,MWizardDialog
- All Known Implementing Classes:
ApplicationImpl
,CompositePartImpl
,PartImpl
,PerspectiveImpl
,PopupMenuImpl
,TrimmedWindowImpl
,WindowImpl
This class is mixed into a UI element when that element is expected to participate in the Dependency Injection context hierarchy. The context life-cycle matches that of the rendered element it belongs to. It's automatically created when the element is rendered and disposed when the element is unrendered.
- 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 'Context' attribute.Returns the value of the 'Properties' map.Returns the value of the 'Variables' attribute list.void
setContext
(IEclipseContext value) Sets the value of the 'Context
' attribute.
-
Method Details
-
getContext
IEclipseContext getContext()Returns the value of the 'Context' attribute.This attribute is a reference to the IEclipseContext for this UI element. It will be non-null only when the element is rendered.
- Returns:
- the value of the 'Context' attribute.
- See Also:
-
setContext
Sets the value of the 'Context
' attribute.- Parameters:
value
- the new value of the 'Context' attribute.- See Also:
-
getVariables
Returns the value of the 'Variables' attribute list. The list contents are of typeString
.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 'Variables' attribute list.
-
getProperties
Returns the value of the 'Properties' map. The key is of typeString
, and the value is of typeString
,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 'Properties' map.
-