| org.eclipse.ui.presentations.IStackPresentationSite
All known Subclasses: org.eclipse.ui.internal.DefaultStackPresentationSite,
IStackPresentationSite | public interface IStackPresentationSite (Code) | | Represents the main interface between a StackPresentation and the workbench.
Not intended to be implemented by clients.
since: 3.0 |
STATE_MAXIMIZED | public static int STATE_MAXIMIZED(Code) | | |
STATE_MINIMIZED | public static int STATE_MINIMIZED(Code) | | |
STATE_RESTORED | public static int STATE_RESTORED(Code) | | |
addSystemActions | public void addSystemActions(IMenuManager menuManager)(Code) | | Adds system actions to the given menu manager. The site may
make use of the following group ids:
close , for close actions
size , for resize actions
misc , for miscellaneous actions
The presentation can control the insertion position by creating
these group IDs where appropriate.
Parameters: menuManager - the menu manager to populate |
close | public void close(IPresentablePart[] toClose)(Code) | | Closes the given set of parts.
Parameters: toClose - the set of parts to close (Not null. All of the entries must be non-null) |
dragStart | public void dragStart(IPresentablePart beingDragged, Point initialPosition, boolean keyboard)(Code) | | Begins dragging the given part
Parameters: beingDragged - the part to drag (not null) Parameters: initialPosition - the mouse position at the time of the initial mousedown (display coordinates, not null) Parameters: keyboard - true iff the drag was initiated via mouse dragging,and false if the drag may be using the keyboard |
dragStart | public void dragStart(Point initialPosition, boolean keyboard)(Code) | | Begins dragging the entire stack of parts
Parameters: initialPosition - the mouse position at the time of the initial mousedown (display coordinates, not null) Parameters: keyboard - true iff the drag was initiated via mouse dragging,and false if the drag may be using the keyboard |
flushLayout | public void flushLayout()(Code) | | Notifies the workbench that the preferred size of the presentation has
changed. Hints to the workbench that it should trigger a layout at the
next opportunity.
since: 3.1 |
getPartList | public IPresentablePart[] getPartList()(Code) | | Returns the list of presentable parts currently in this site
the list of presentable parts currently in this site since: 3.1 |
getProperty | public String getProperty(String id)(Code) | | Returns the property with the given id or 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.
Parameters: id - Must not be null . property value, or null if the property is notset. since: 3.3 |
getSelectedPart | public IPresentablePart getSelectedPart()(Code) | | Returns the currently selected part or null if the stack is empty
the currently selected part or null if the stack is empty |
getState | public int getState()(Code) | | Returns the current state of the site (one of the STATE_* constants)
the current state of the site (one of the STATE_* constants) |
isCloseable | public boolean isCloseable(IPresentablePart toClose)(Code) | | Returns true iff this site will allow the given part to be closed
Parameters: toClose - part to test (not null) true iff the part may be closed |
isPartMoveable | public boolean isPartMoveable(IPresentablePart toMove)(Code) | | Returns true iff the given part can be dragged. If this
returns false, the given part should not trigger a drag.
Parameters: toMove - part to test (not null) true iff this part is a valid drag source |
isStackMoveable | public boolean isStackMoveable()(Code) | | Returns true iff this entire stack can be dragged
tre iff the stack can be dragged |
selectPart | public void selectPart(IPresentablePart toSelect)(Code) | | Makes the given part active
Parameters: toSelect - |
setState | public void setState(int newState)(Code) | | Sets the state of the container. Called by the presentation when the
user causes the the container to be minimized, maximized, etc.
Parameters: newState - one of the STATE_* constants |
supportsState | public boolean supportsState(int state)(Code) | | Returns true iff the site supports the given state
Parameters: state - one of the STATE_* constants, above true iff the site supports the given state |
|
|