Interface MPartDescriptor

All Superinterfaces:
MApplicationElement, MBindings, MHandlerContainer, MLocalizable, MUILabel
All Known Implementing Classes:
PartDescriptorImpl

public interface MPartDescriptor extends MApplicationElement, MUILabel, MHandlerContainer, MBindings
A representation of the model object 'Part Descriptor'.

This element represents a template from which an MPart can be created on demand. The collection of PartDescriptors owned by the Application represents the contributed parts and is used in the e4 version of 'Show View'...

Since:
1.0
Restriction:
This interface is not intended to be implemented by clients.

The following features are supported:

  • Method Details

    • isAllowMultiple

      boolean isAllowMultiple()
      Returns the value of the 'Allow Multiple' attribute.

      Determines whether or not the part represented by this descriptot can have multiple instances with a given window.

      Returns:
      the value of the 'Allow Multiple' attribute.
      See Also:
    • setAllowMultiple

      void setAllowMultiple(boolean value)
      Sets the value of the 'Allow Multiple' attribute.
      Parameters:
      value - the new value of the 'Allow Multiple' attribute.
      See Also:
    • getCategory

      String getCategory()
      Returns the value of the 'Category' attribute.

      The category that the view represented by this descriptor belongs to.

      Returns:
      the value of the 'Category' attribute.
      See Also:
    • setCategory

      void setCategory(String value)
      Sets the value of the 'Category' attribute.
      Parameters:
      value - the new value of the 'Category' attribute.
      See Also:
    • getMenus

      List<MMenu> getMenus()
      Returns the value of the 'Menus' containment reference list. The list contents are of type MMenu.

      This defines the list of the menus associated with the part represented by this descriptor. There are two specific menus that are managed by the core UI:

      • If the menu is the part's id prefixed with "menu:" then it will appear as the drop down menu available from the view's toolbar.
      • If the menu is the part's id prefixed with "popup:" then it will appear as the default context menu for this view.

      Other menus can be added here but have to be managed by the part itself...

      Returns:
      the value of the 'Menus' containment reference list.
    • getToolbar

      MToolBar getToolbar()
      Returns the value of the 'Toolbar' containment reference.

      This is the Toolbar associated with tihs Part (if any).

      Returns:
      the value of the 'Toolbar' containment reference.
      See Also:
    • setToolbar

      void setToolbar(MToolBar value)
      Sets the value of the 'Toolbar' containment reference.
      Parameters:
      value - the new value of the 'Toolbar' containment reference.
      See Also:
    • isCloseable

      boolean isCloseable()
      Returns the value of the 'Closeable' attribute. The default value is "false".

      Defines whether instances of views created from this descriptor are closeable by the User.

      Returns:
      the value of the 'Closeable' attribute.
      See Also:
    • setCloseable

      void setCloseable(boolean value)
      Sets the value of the 'Closeable' attribute.
      Parameters:
      value - the new value of the 'Closeable' attribute.
      See Also:
    • isDirtyable

      @Deprecated boolean isDirtyable()
      Deprecated.
      dirtyable is managed by part.
      Returns the value of the 'Dirtyable' attribute.

      Determines whether Parts generated from this template can participate in the Dirty -> Save cycle. At best this is a hint since all Parts are inherently dirtyable.

      Returns:
      the value of the 'Dirtyable' attribute.
      See Also:
      Restriction:
      This method is not intended to be referenced by clients.
    • setDirtyable

      @Deprecated void setDirtyable(boolean value)
      Deprecated.
      See model documentation for details.
      Sets the value of the 'Dirtyable' attribute.
      Parameters:
      value - the new value of the 'Dirtyable' attribute.
      See Also:
      Restriction:
      See model documentation for details.
    • getContributionURI

      String getContributionURI()
      Returns the value of the 'Contribution URI' attribute.

      The fully qualified path to the class implementing the behavior of the Part.

      Returns:
      the value of the 'Contribution URI' attribute.
      See Also:
    • setContributionURI

      void setContributionURI(String value)
      Sets the value of the 'Contribution URI' attribute.
      Parameters:
      value - the new value of the 'Contribution URI' attribute.
      See Also:
    • getDescription

      String getDescription()
      Returns the value of the 'Description' attribute.

      The description of this Part.

      Returns:
      the value of the 'Description' attribute.
      See Also:
    • setDescription

      void setDescription(String value)
      Sets the value of the 'Description' attribute.
      Parameters:
      value - the new value of the 'Description' attribute.
      See Also:
    • getLocalizedDescription

      String getLocalizedDescription()
      Returns the value of the 'Localized Description' attribute.
      Returns:
      the value of the 'Localized Description' attribute.
    • 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.
    • getTrimBars

      List<MTrimBar> getTrimBars()
      Returns the value of the 'Trim Bars' containment reference list. The list contents are of type MTrimBar.

      The collection of TrimBars associated with the part represented by this descriptor.

      Returns:
      the value of the 'Trim Bars' containment reference list.
      Since:
      1.3