Interface MPartDescriptor
- All Superinterfaces:
MApplicationElement
,MBindings
,MHandlerContainer
,MLocalizable
,MUILabel
- All Known Implementing Classes:
PartDescriptorImpl
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 Summary
Modifier and TypeMethodDescriptionReturns the value of the 'Category' attribute.Returns the value of the 'Contribution URI' attribute.Returns the value of the 'Description' attribute.Returns the value of the 'Localized Description' attribute.getMenus()
Returns the value of the 'Menus' containment reference list.Returns the value of the 'Properties' map.Returns the value of the 'Toolbar' containment reference.Returns the value of the 'Trim Bars' containment reference list.Returns the value of the 'Variables' attribute list.boolean
Returns the value of the 'Allow Multiple' attribute.boolean
Returns the value of the 'Closeable' attribute.boolean
Deprecated.dirtyable is managed by part.void
setAllowMultiple
(boolean value) Sets the value of the 'Allow Multiple
' attribute.void
setCategory
(String value) Sets the value of the 'Category
' attribute.void
setCloseable
(boolean value) Sets the value of the 'Closeable
' attribute.void
setContributionURI
(String value) Sets the value of the 'Contribution URI
' attribute.void
setDescription
(String value) Sets the value of the 'Description
' attribute.void
setDirtyable
(boolean value) Deprecated.Seemodel documentation
for details.void
setToolbar
(MToolBar value) Sets the value of the 'Toolbar
' containment reference.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.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.MUILabel
getIconURI, getLabel, getLocalizedLabel, getLocalizedTooltip, getTooltip, setIconURI, setLabel, setTooltip
-
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
Sets the value of the 'Category
' attribute.- Parameters:
value
- the new value of the 'Category' attribute.- See Also:
-
getMenus
Returns the value of the 'Menus' containment reference list. The list contents are of typeMMenu
.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:
-
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.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.Seemodel 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
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
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
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.
-
getTrimBars
Returns the value of the 'Trim Bars' containment reference list. The list contents are of typeMTrimBar
.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
-