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

public interface MContext
A representation of the model object 'Context'.

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 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

      void setContext(IEclipseContext value)
      Sets the value of the 'Context' attribute.
      Parameters:
      value - the new value of the 'Context' attribute.
      See Also:
    • getVariables

      List<String> getVariables()
      Returns the value of the 'Variables' attribute list. The list contents are of type String.

      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

      Map<String,String> getProperties()
      Returns the value of the 'Properties' map. The key is of type String, and the value is of type String,

      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.