Method Summary |
|
void | addActionSet(IActionSetDescriptor newDesc) |
public void | addFastView(IViewReference ref, boolean handleLayout) Sets the fast view attribute. |
public boolean | bringToTop(IViewReference ref) Moves a part forward in the Z order of a perspective so it is visible. |
public int | calcStackSide(Rectangle stackBounds) Determine the correct side to initially dock a new
trim part on. |
public boolean | containsView(IViewPart view) Returns whether a view exists within the perspective. |
IStatus | createReferences(IMemento views) |
public void | describeLayout(StringBuffer buf) Writes a description of the layout to the given string buffer.
This is used for drag-drop test suites to determine if two layouts are the
same. |
public void | dispose() Dispose the perspective and all views contained within. |
public IViewReference | findView(String viewId) Finds the view with the given ID that is open in this page, or null
if not found. |
public IViewReference | findView(String id, String secondaryId) Finds the view with the given id and secondary id that is open in this page,
or null if not found. |
public IViewReference | getActiveFastView() Return the active fast view or null if there are no
fast views or if there are all minimized. |
public IActionSetDescriptor[] | getAlwaysOffActionSets() |
public IActionSetDescriptor[] | getAlwaysOnActionSets() |
public Composite | getClientComposite() Returns the window's client composite widget
which views and editor area will be parented. |
public IPerspectiveDescriptor | getDesc() Returns the perspective. |
public boolean | getEditorAreaRestoreOnUnzoom() |
public int | getEditorAreaState() |
Rectangle | getFastViewBounds(IViewReference ref) Returns the bounds of the given fast view. |
public FastViewManager | getFastViewManager() |
FastViewPane | getFastViewPane() |
public int | getFastViewState() |
public float | getFastViewWidthRatio(IViewReference ref) Retrieves the fast view width ratio for the given view. |
public IViewReference[] | getFastViews() Returns the docked views. |
public String[] | getNewWizardShortcuts() Returns the new wizard shortcuts associated with this perspective. |
public IWorkbenchPartReference | getOldPartRef() Returns the old part reference. |
public String[] | getPerspectiveShortcuts() Returns the perspective shortcuts associated with this perspective. |
public PerspectiveHelper | getPresentation() Returns the presentation. |
public ArrayList | getShowInPartIds() Returns the ids of the parts to list in the Show In... |
public long | getShowInTime(String partId) Returns the time at which the last Show In was performed
for the given target part, or 0 if unknown. |
public boolean | getShowTitleView(IViewReference ref) Returns whether the title for a view should
be shown. |
public String[] | getShowViewShortcuts() Returns the show view shortcuts associated with this perspective. |
public ViewFactory | getViewFactory() Returns the view factory. |
public ViewLayoutRec | getViewLayoutRec(IViewReference ref, boolean create) Returns the view layout rec for the given view reference,
or null if not found. |
public IViewReference | getViewReference(String viewId, String secondaryId) Resolves a view's id into its reference, creating the
view if necessary.
Parameters: viewId - The primary id of the view (must not benull Parameters: secondaryId - The secondary id of a multiple-instance view(may be null ). |
public IViewReference[] | getViewReferences() See IWorkbenchPage. |
protected void | hideEditorArea() |
protected void | hideEditorAreaLocal() |
void | hideFastViewSash() Hides the fast view sash for zooming in a fast view. |
public boolean | hideView(IViewReference ref) |
public boolean | isCloseable(IViewReference reference) Returns whether the given view is closeable in this perspective. |
protected boolean | isEditorAreaVisible() |
public boolean | isFastView(IViewReference ref) Returns true if a view is fast. |
public boolean | isFixedLayout() Returns true if a layout or perspective is fixed. |
public boolean | isMoveable(IViewReference reference) Returns whether the given view is moveable in this perspective. |
public boolean | isStandaloneView(IViewReference ref) Returns true if a view is standalone. |
public void | makeFastView(IViewReference ref) Sets the fast view attribute. |
protected void | onActivate() activate. |
protected void | onDeactivate() deactivate. |
public void | partActivated(IWorkbenchPart activePart) Notifies that a part has been activated. |
public void | performedShowIn(String partId) The user successfully performed a Show In... |
public void | refreshEditorAreaVisibility() |
void | removeActionSet(String id) |
void | removeActionSet(IActionSetDescriptor toRemove) |
public void | removeFastView(IViewReference ref) Sets the fast view attribute. |
public void | removeFastView(IViewReference ref, boolean handleLayout) Sets the fast view attribute. |
public IViewReference | restoreFastView(IMemento fvMemento, MultiStatus result) Restores a fast view to its corrent presentation structure. |
public IStatus | restoreState(IMemento memento) Fills a presentation with layout data. |
public IStatus | restoreState() Fills a presentation with layout data. |
public void | restoreTrimPart(LayoutPart part) |
public void | restoreZoomedParts() |
public void | saveDesc() Save the layout. |
public void | saveDescAs(IPerspectiveDescriptor desc) Save the layout. |
public IStatus | saveState(IMemento memento) Save the layout. |
void | setActiveFastView(IViewReference ref, int steps) Sets the active fast view. |
void | setActiveFastView(IViewReference ref) Sets the active fast view. |
public void | setEditorAreaRestoreOnUnzoom(boolean restore) |
public void | setEditorAreaState(int newState) |
protected EditorAreaTrimToolBar | setEditorAreaTrimVisibility(boolean visible) |
public void | setFastViewState(int newState) |
public void | setNewWizardActionIds(ArrayList newList) Sets the new wizard actions for the page. |
public void | setOldPartRef(IWorkbenchPartReference oldPartRef) Sets the old part reference. |
public void | setPerspectiveActionIds(ArrayList list) Sets the perspective actions for this page. |
public void | setShowInPartIds(ArrayList list) Sets the ids of the parts to list in the Show In... |
public void | setShowViewActionIds(ArrayList list) Sets the ids of the views to list in the Show View shortcuts. |
protected void | showEditorArea() |
protected void | showEditorAreaLocal() |
boolean | showFastView(IViewReference ref) Shows a fast view. |
public IViewPart | showView(String viewId, String secondaryId) Shows the view with the given id and secondary id. |
public void | testInvariants() Sanity-checks the LayoutParts in this perspective. |
public void | toggleFastView(IViewReference ref) Toggles the visibility of a fast view. |
public void | turnOffActionSet(IActionSetDescriptor toDisable) |
public void | turnOffActionSets(IActionSetDescriptor[] toDisable) |
public void | turnOnActionSets(IActionSetDescriptor[] newArray) |
public static boolean | useNewMinMax(Perspective activePerspective) Used to restrict the use of the new min/max behavior to envoronments
in which it has a chance of working... |