@Deprecated public interface IStackPresentationSite
Modifier and Type | Field and Description |
---|---|
static int |
STATE_MAXIMIZED
Deprecated.
|
static int |
STATE_MINIMIZED
Deprecated.
|
static int |
STATE_RESTORED
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addSystemActions(IMenuManager menuManager)
Deprecated.
Adds system actions to the given menu manager.
|
void |
close(IPresentablePart[] toClose)
Deprecated.
Closes the given set of parts.
|
void |
dragStart(IPresentablePart beingDragged,
Point initialPosition,
boolean keyboard)
Deprecated.
Begins dragging the given part
|
void |
dragStart(Point initialPosition,
boolean keyboard)
Deprecated.
Begins dragging the entire stack of parts
|
void |
flushLayout()
Deprecated.
Notifies the workbench that the preferred size of the presentation has
changed.
|
IPresentablePart[] |
getPartList()
Deprecated.
Returns the list of presentable parts currently in this site
|
String |
getProperty(String id)
Deprecated.
Returns the property with the given id or
null . |
IPresentablePart |
getSelectedPart()
Deprecated.
Returns the currently selected part or null if the stack is empty
|
int |
getState()
Deprecated.
Returns the current state of the site (one of the STATE_* constants)
|
boolean |
isCloseable(IPresentablePart toClose)
Deprecated.
Returns true iff this site will allow the given part to be closed
|
boolean |
isPartMoveable(IPresentablePart toMove)
Deprecated.
Returns true iff the given part can be dragged.
|
boolean |
isStackMoveable()
Deprecated.
Returns true iff this entire stack can be dragged
|
void |
selectPart(IPresentablePart toSelect)
Deprecated.
Makes the given part active
|
void |
setState(int newState)
Deprecated.
Sets the state of the container.
|
boolean |
supportsState(int state)
Deprecated.
Returns true iff the site supports the given state
|
static final int STATE_MINIMIZED
static final int STATE_MAXIMIZED
static final int STATE_RESTORED
void setState(int newState)
newState
- one of the STATE_* constantsint getState()
boolean supportsState(int state)
state
- one of the STATE_* constants, abovevoid dragStart(IPresentablePart beingDragged, Point initialPosition, boolean keyboard)
beingDragged
- the part to drag (not null)initialPosition
- the mouse position at the time of the initial mousedown
(display coordinates, not null)keyboard
- true iff the drag was initiated via mouse dragging,
and false if the drag may be using the keyboardvoid close(IPresentablePart[] toClose)
toClose
- the set of parts to close (Not null. All of the entries must be non-null)void dragStart(Point initialPosition, boolean keyboard)
initialPosition
- the mouse position at the time of the initial mousedown (display coordinates,
not null)keyboard
- true iff the drag was initiated via mouse dragging,
and false if the drag may be using the keyboardboolean isCloseable(IPresentablePart toClose)
toClose
- part to test (not null)boolean isPartMoveable(IPresentablePart toMove)
toMove
- part to test (not null)boolean isStackMoveable()
void selectPart(IPresentablePart toSelect)
toSelect
- IPresentablePart getSelectedPart()
void addSystemActions(IMenuManager menuManager)
close
, for close actionssize
, for resize actionsmisc
, for miscellaneous actionsmenuManager
- the menu manager to populatevoid flushLayout()
IPresentablePart[] getPartList()
String getProperty(String id)
null
. Folder
properties are an extensible mechanism for perspective authors to
customize the appearance of view stacks. The list of customizable
properties is determined by the presentation factory, and set in the
perspective factory.id
- Must not be null
.null
if the property is not
set.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.