@Deprecated public interface IPresentablePart extends ISizeProvider
ISizeProvider
Modifier and Type | Field and Description |
---|---|
static int |
PROP_BUSY
Deprecated.
The property id for
isBusy . |
static int |
PROP_CONTENT_DESCRIPTION
Deprecated.
The property id for
IWorkbenchPart2.getContentDescription() |
static int |
PROP_DIRTY
Deprecated.
The property id for
isDirty . |
static int |
PROP_HIGHLIGHT_IF_BACK
Deprecated.
The property id for highlighting the
part if it is not in front.
|
static int |
PROP_INPUT
Deprecated.
The property id for
getEditorInput . |
static int |
PROP_PANE_MENU
Deprecated.
The property id for pane menu changes
|
static int |
PROP_PART_NAME
Deprecated.
The property id for
IWorkbenchPart2.getContentDescription() |
static int |
PROP_PREFERRED_SIZE
Deprecated.
The property id for preferred size changes
|
static int |
PROP_TITLE
Deprecated.
The property id for
getTitle , getTitleImage
and getTitleToolTip . |
static int |
PROP_TOOLBAR
Deprecated.
The property id for toolbar changes
|
INFINITE
Modifier and Type | Method and Description |
---|---|
void |
addPartPropertyListener(IPropertyChangeListener listener)
Deprecated.
Add a listener for changes in the arbitrary properties set.
|
void |
addPropertyListener(IPropertyListener listener)
Deprecated.
Adds a listener for changes to properties of this workbench part.
|
Control |
getControl()
Deprecated.
Returns an SWT control that can be used to indicate the tab order for
this part.
|
IPartMenu |
getMenu()
Deprecated.
Returns the menu for this part or null if none
|
String |
getName()
Deprecated.
Returns the short name of the part.
|
String |
getPartProperty(String key)
Deprecated.
Get a property from the part's arbitrary property set.
|
String |
getTitle()
Deprecated.
Returns the title of this workbench part.
|
Image |
getTitleImage()
Deprecated.
Returns the title image of this workbench part.
|
String |
getTitleStatus()
Deprecated.
Returns the status message from the part's title, or the empty string if none.
|
String |
getTitleToolTip()
Deprecated.
Returns the title tool tip text of this workbench part.
|
Control |
getToolBar()
Deprecated.
Returns the local toolbar for this part, or null if this part does not
have a local toolbar.
|
boolean |
isBusy()
Deprecated.
Return true if the the receiver is currently in a busy state.
|
boolean |
isCloseable()
Deprecated.
Returns true iff this part can be closed
|
boolean |
isDirty()
Deprecated.
Returns true iff the contents of this part have changed recently.
|
void |
removePartPropertyListener(IPropertyChangeListener listener)
Deprecated.
Remove a change listener from the arbitrary properties set.
|
void |
removePropertyListener(IPropertyListener listener)
Deprecated.
Remove a listener that was previously added using addPropertyListener.
|
void |
setBounds(Rectangle bounds)
Deprecated.
Sets the bounds of this part.
|
void |
setFocus()
Deprecated.
Forces this part to have focus.
|
void |
setVisible(boolean isVisible)
Deprecated.
Notifies the part whether or not it is visible in the current
perspective.
|
computePreferredSize, getSizeFlags
static final int PROP_DIRTY
isDirty
.static final int PROP_INPUT
getEditorInput
.static final int PROP_TITLE
getTitle
, getTitleImage
and getTitleToolTip
.static final int PROP_CONTENT_DESCRIPTION
IWorkbenchPart2.getContentDescription()
static final int PROP_PART_NAME
IWorkbenchPart2.getContentDescription()
static final int PROP_BUSY
isBusy
.static final int PROP_TOOLBAR
static final int PROP_HIGHLIGHT_IF_BACK
static final int PROP_PANE_MENU
static final int PROP_PREFERRED_SIZE
void setBounds(Rectangle bounds)
bounds
- bounding rectangle (not null)void setVisible(boolean isVisible)
isVisible
- true if the part has just become visible, false
if the part has just become hiddenvoid setFocus()
void addPropertyListener(IPropertyListener listener)
The properties ids are defined by the PROP_* constants, above.
listener
- a property listener (not null)void removePropertyListener(IPropertyListener listener)
listener
- a property listener (not null)String getName()
String getTitle()
PROP_TITLE
.
The title is used to populate the title bar of this part's visual container.
String getTitleStatus()
Presentations can query getName() and getTitleStatus() if they want to display the status message and name separately, or they can use getTitle() if they want to display the entire title.
Image getTitleImage()
PROP_TITLE
.
The title image is usually used to populate the title bar of this part's visual container. Since this image is managed by the part itself, callers must not dispose the returned image.
String getTitleToolTip()
PROP_TITLE
.
The tool tip text is used to populate the title bar of this part's visual container.
boolean isDirty()
boolean isBusy()
boolean isCloseable()
Control getToolBar()
IPartMenu getMenu()
Control getControl()
StackPresentation.getTabList(IPresentablePart)
. Any other use of this control is
unsupported. This may return a placeholder control that is only
meaningful in the context of getTabList
.String getPartProperty(String key)
Note: this is a different set of properties than the ones covered by the PROP_* constants.
key
- The property key to retrieve. Must not be null
.null
if that property is not set.void addPartPropertyListener(IPropertyChangeListener listener)
Note: this is a different set of properties than the ones covered by the PROP_* constants.
listener
- Must not be null
.void removePartPropertyListener(IPropertyChangeListener listener)
Note: this is a different set of properties than the ones covered by the PROP_* constants.
listener
- Must not be null
.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.