Interface MPart
-
- All Superinterfaces:
MApplicationElement
,MBindings
,MContext
,MContribution
,MDirtyable
,MHandlerContainer
,MLocalizable
,MPartSashContainerElement
,MStackElement
,MUIElement
,MUILabel
,MWindowElement
- All Known Subinterfaces:
MCompositePart
public interface MPart extends MUIElement, MPartSashContainerElement, MStackElement, MContribution, MContext, MUILabel, MHandlerContainer, MDirtyable, MBindings, MWindowElement
A representation of the model object 'Part'.This a concrete class representing the core UI functionality within a Window. It's what used to be a View / Editor in Eclipse 3.
- Since:
- 1.0
- Restriction:
- This interface is not intended to be implemented by clients.
The following features are supported:
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getDescription()
Returns the value of the 'Description' attribute.String
getLocalizedDescription()
Returns the value of the 'Localized Description' attribute.List<MMenu>
getMenus()
Returns the value of the 'Menus' containment reference list.MToolBar
getToolbar()
Returns the value of the 'Toolbar' containment reference.List<MTrimBar>
getTrimBars()
Returns the value of the 'Trim Bars' containment reference list.boolean
isCloseable()
Returns the value of the 'Closeable' attribute.void
setCloseable(boolean value)
Sets the value of the 'Closeable
' attribute.void
setDescription(String value)
Sets the value of the 'Description
' attribute.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.ui.MContext
getContext, getProperties, getVariables, setContext
-
Methods inherited from interface org.eclipse.e4.ui.model.application.MContribution
getContributionURI, getObject, setContributionURI, setObject
-
Methods inherited from interface org.eclipse.e4.ui.model.application.ui.MDirtyable
isDirty, setDirty
-
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.MUIElement
getAccessibilityPhrase, getContainerData, getCurSharedRef, getLocalizedAccessibilityPhrase, getParent, getRenderer, getVisibleWhen, getWidget, isOnTop, isToBeRendered, isVisible, setAccessibilityPhrase, setContainerData, setCurSharedRef, setOnTop, setParent, setRenderer, setToBeRendered, setVisible, setVisibleWhen, setWidget
-
Methods inherited from interface org.eclipse.e4.ui.model.application.ui.MUILabel
getIconURI, getLabel, getLocalizedLabel, getLocalizedTooltip, getTooltip, setIconURI, setLabel, setTooltip
-
-
-
-
Method Detail
-
getMenus
List<MMenu> 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 this part. 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 ddefault 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(MToolBar)
-
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:
getToolbar()
-
isCloseable
boolean isCloseable()
Returns the value of the 'Closeable' attribute. The default value is"false"
.Determines whether the user is allowed to close this view.
- Returns:
- the value of the 'Closeable' attribute.
- See Also:
setCloseable(boolean)
-
setCloseable
void setCloseable(boolean value)
Sets the value of the 'Closeable
' attribute.- Parameters:
value
- the new value of the 'Closeable' attribute.- See Also:
isCloseable()
-
getDescription
String getDescription()
Returns the value of the 'Description' attribute.The description of this Part; used when the Part appears in a list of Parts (i.e. 'Show View').
- Returns:
- the value of the 'Description' attribute.
- See Also:
setDescription(String)
-
setDescription
void setDescription(String value)
Sets the value of the 'Description
' attribute.- Parameters:
value
- the new value of the 'Description' attribute.- See Also:
getDescription()
-
getLocalizedDescription
String getLocalizedDescription()
Returns the value of the 'Localized Description' attribute.- Returns:
- the value of the 'Localized Description' attribute.
-
-