| java.lang.Object org.eclipse.ui.internal.FastViewManager
FastViewManager | public class FastViewManager (Code) | | Manage all Fast views for a particular perspective. As of 3.3 fast views
appear in more than one manner (legacy FVB and Trim Stacks). The manager is
responsible for providing a single implementation for the methods relating to
fast views regardless of their UI presentation.
since: 3.3 |
Method Summary | |
public void | activate() Activate the manager. | public void | addViewReference(String id, int index, IViewReference ref, boolean update) Casues the given
IViewReference to be added to the list
identified by the 'id' parameter. | public void | deActivate() Activate the manager. | public void | deferUpdates(boolean defer) Informs the manager that a batch operation has started
(say 'maximize', where many stacks will change state). | public ViewStackTrimToolBar | getBottomRightTrimStack() Returns the 'bottom/right' trim stack. | public List | getFastViews(String forId) | public String | getIdForRef(IViewReference ref) | public int | getViewSide(IViewReference ref) | public ViewStackTrimToolBar | getViewStackTrimToolbar(String id) Returns the trim element for the given id if it exists. | protected void | handlePerspectiveActivation(IWorkbenchPage activatingPage, IPerspectiveDescriptor activatingPerspective) | protected void | handlePerspectiveChange(IWorkbenchPage changedPage, IPerspectiveDescriptor changedPerspective, IWorkbenchPartReference partRef, String changeId) | protected void | handlePerspectiveChange(IWorkbenchPage changedPage, IPerspectiveDescriptor changedPerspective, String changeId) | boolean | isFastView(IViewReference ref) | public void | moveToTrim(ViewStack vs, boolean restoreOnUnzoom) | public void | printFVModel() | public void | removeViewReference(IViewReference ref, boolean makeUnfast, boolean update) | public boolean | restoreAllTrimStacks() Restore any trim stacks. | public void | restoreState(IMemento memento, MultiStatus result) | public void | restoreToPresentation(String id) Restore the trim element representing a ViewStack back into the
presentation. | public void | restoreZoomedViewStacks() | public void | saveState(IMemento memento) | public void | setFastViewIconSelection(IViewReference ref, boolean selected) |
FastViewManager | public FastViewManager(Perspective perspective, WorkbenchPage page)(Code) | | Creates a new manager for a particular perspective
Parameters: perspective - Parameters: page - |
activate | public void activate()(Code) | | Activate the manager. Called from the Perspecive's 'onActivate'
|
addViewReference | public void addViewReference(String id, int index, IViewReference ref, boolean update)(Code) | | Casues the given
IViewReference to be added to the list
identified by the 'id' parameter. The reference is added at the specified
index or at the end if the index is -1. If there was a previous entry for
this ref it will be removed so that only the ref will only ever be in one
list at a time.
NOTE: The trim life-cycle is managed at the stack level so there -must-
be an entry in the map and a corresponding trim element before calling
this method,
The page/perspective are updated to make the view a fastview if
necessary.
Parameters: id - The id of the IWindowTrim that is to show the ref Parameters: index - The index to insert the ref at Parameters: ref - The IViewReference to add Parameters: update - cause the trim to update if true |
deActivate | public void deActivate()(Code) | | Activate the manager. Called from the Perspecive's 'onActivate'
|
deferUpdates | public void deferUpdates(boolean defer)(Code) | | Informs the manager that a batch operation has started
(say 'maximize', where many stacks will change state).
Parameters: defer - true when starting a batch operationfalse when ending the operation |
getBottomRightTrimStack | public ViewStackTrimToolBar getBottomRightTrimStack()(Code) | | Returns the 'bottom/right' trim stack. This is used to
match the old behavior when opening a new view that has no placeholder
in the case where there WB is maximized.
The 'bottom/right' trim stack or null if there are nodefined trim stacks |
getFastViews | public List getFastViews(String forId)(Code) | | The list of current fast views associated with the given id orthe complete list of fastviews if the id == null. |
getIdForRef | public String getIdForRef(IViewReference ref)(Code) | | Parameters: ref - The IViewRference to check The id of the trim bar currently showing the reference ornull if it's not in any list |
getViewSide | public int getViewSide(IViewReference ref)(Code) | | The side that the fast view pane should be attached to based onthe position of the trim element containing the ref. |
getViewStackTrimToolbar | public ViewStackTrimToolBar getViewStackTrimToolbar(String id)(Code) | | Returns the trim element for the given id if it exists. This
will not be null if there are entries in the
'idToFastViewsMap' for this id.
Parameters: id - The id of the view stack to get the trim toolbar for. |
isFastView | boolean isFastView(IViewReference ref)(Code) | | Parameters: ref - The IViewRference to check true iff the ref is in -any- list |
moveToTrim | public void moveToTrim(ViewStack vs, boolean restoreOnUnzoom)(Code) | | |
printFVModel | public void printFVModel()(Code) | | |
removeViewReference | public void removeViewReference(IViewReference ref, boolean makeUnfast, boolean update)(Code) | | Remove the view reference from its existing location
Parameters: ref - The IViewReference to remove |
restoreAllTrimStacks | public boolean restoreAllTrimStacks()(Code) | | Restore any trim stacks. This method is used when the presentation
is switched back to 3.0; if we aren't using the new min/max story
then we shouldn't -have- any trim stacks.
|
restoreState | public void restoreState(IMemento memento, MultiStatus result)(Code) | | |
restoreToPresentation | public void restoreToPresentation(String id)(Code) | | Restore the trim element representing a ViewStack back into the
presentation.
Parameters: viewStackTrimToolBar - The trim version to restore |
restoreZoomedViewStacks | public void restoreZoomedViewStacks()(Code) | | Restore all fact view stacks created as part of a zoom
|
setFastViewIconSelection | public void setFastViewIconSelection(IViewReference ref, boolean selected)(Code) | | Parameters: ref - Sets the ref of the icon Parameters: selected - the selection state of the icon |
|
|