Method Summary |
|
public void | activate(IWorkbenchPart part) Activates a part. |
public void | addFastView(IViewReference ref) Add a fast view. |
public void | addPartListener(IPartListener l) Adds an IPartListener to the part service. |
public void | addPartListener(IPartListener2 l) Adds an IPartListener to the part service. |
protected void | addPerspective(Perspective persp) |
public void | addPostSelectionListener(ISelectionListener listener) |
public void | addPostSelectionListener(String partId, ISelectionListener listener) |
public void | addPropertyChangeListener(IPropertyChangeListener listener) |
public void | addSelectionListener(ISelectionListener listener) |
public void | addSelectionListener(String partId, ISelectionListener listener) |
public void | attachView(IViewReference ref) Removes a detachedwindow. |
public void | bringToTop(IWorkbenchPart part) Moves a part forward in the Z order of a perspective so it is visible. |
public boolean | close() Closes the perspective. |
public boolean | closeAllEditors(boolean save) |
public void | closeAllPerspectives(boolean saveEditors, boolean closePage) |
public boolean | closeAllSavedEditors() |
public boolean | closeEditor(IEditorReference editorRef, boolean save) |
public boolean | closeEditor(IEditorPart editor, boolean save) |
public boolean | closeEditors(IEditorReference[] refArray, boolean save) |
public void | closePerspective(IPerspectiveDescriptor desc, boolean saveParts, boolean closePage) |
void | closePerspective(Perspective persp, boolean saveParts, boolean closePage) Closes the specified perspective. |
public void | detachView(IViewReference ref) Detaches a view from the WorkbenchWindow. |
public void | dispose() Cleanup. |
public boolean | editActionSets() Edits the action sets. |
public IEditorPart | findEditor(IEditorInput input) See IWorkbenchPage. |
public IEditorReference[] | findEditors(IEditorInput input, String editorId, int matchFlags) See IWorkbenchPage. |
public Perspective | findPerspective(IPerspectiveDescriptor desc) Returns the first view manager with given ID. |
public IViewPart | findView(String id) See IWorkbenchPage@findView. |
public IViewReference | findViewReference(String viewId) |
public IViewReference | findViewReference(String viewId, String secondaryId) |
public IActionBars | getActionBars() |
public IActionSetDescriptor[] | getActionSets() Returns an array of the visible action sets. |
public IEditorPart | getActiveEditor() |
public IEditorReference | getActiveEditorReference() Returns the reference for the active editor, or null
if there is no active editor. |
public IViewReference | getActiveFastView() Return the active fast view or null if there are no fast views or if
there are all minimized. |
public IWorkbenchPart | getActivePart() |
public IWorkbenchPartReference | getActivePartReference() |
public Perspective | getActivePerspective() Returns the active perspective for the page, null if
none. |
public IWorkingSet | getAggregateWorkingSet() |
IWorkbenchPartReference[] | getAllParts() |
public Composite | getClientComposite() Returns the client composite. |
public IEditorPart[] | getDirtyEditors() |
public ISaveablePart[] | getDirtyParts() |
public EditorManager | getEditorManager() Answer the editor manager for this window. |
public EditorAreaHelper | getEditorPresentation() Answer the editor presentation. |
public IEditorReference[] | getEditorReferences() See IWorkbenchPage. |
public int | getEditorReuseThreshold() |
public IEditorPart[] | getEditors() See IWorkbenchPage. |
public IExtensionTracker | getExtensionTracker() |
public IViewReference[] | getFastViews() Returns the docked views. |
Perspective | getFirstPerspectiveWithView(IViewPart part) Checks perspectives in the order they were activiated
for the specfied part. |
public IAdaptable | getInput() |
public String | getLabel() Returns the page label. |
public INavigationHistory | getNavigationHistory() |
public String[] | getNewWizardShortcuts() |
Perspective[] | getOpenInternalPerspectives() Return all open Perspective objects. |
IWorkbenchPartReference[] | getOpenParts() Returns all open parts that are owned by this page (that is, all parts
for which a part opened event would have been sent -- these would be
activated parts whose controls have already been created. |
public IPerspectiveDescriptor[] | getOpenPerspectives() |
public PartService | getPartService() Allow access to the part service for this page ... |
public int | getPartState(IWorkbenchPartReference ref) |
public IPerspectiveDescriptor | getPerspective() Returns the perspective. |
public PerspectiveHelper | getPerspectivePresentation() Answer the perspective presentation. |
public String[] | getPerspectiveShortcuts() |
public IWorkbenchPartReference | getReference(IWorkbenchPart part) Returns the reference to the given part, or null if it has no reference
(i.e. |
public ISelection | getSelection() |
public ISelection | getSelection(String partId) |
public ArrayList | getShowInPartIds() Returns the ids of the parts to list in the Show In... |
public String[] | getShowViewShortcuts() |
public IEditorReference[] | getSortedEditors() |
public IWorkbenchPartReference[] | getSortedParts() |
public IPerspectiveDescriptor[] | getSortedPerspectives() Returns the perspectives in activation order (oldest first). |
int | getState(IWorkbenchPartReference ref) |
public ViewFactory | getViewFactory() |
public IViewReference[] | getViewReferences() See IWorkbenchPage. |
public IViewPart[] | getViewStack(IViewPart part) |
public IViewPart[] | getViews() See IWorkbenchPage. |
IViewPart[] | getViews(Perspective persp, boolean restore) |
public IWorkbenchWindow | getWorkbenchWindow() See IWorkbenchPage. |
public IWorkingSet | getWorkingSet() |
public IWorkingSet[] | getWorkingSets() |
public void | hideActionSet(String actionSetID) |
public void | hideFastView() Hides the active fast view. |
public void | hideView(IViewReference ref) |
public void | hideView(IViewPart view) |
public boolean | isCloseable(IViewReference ref) Return whether the view is closeable or not.
Parameters: ref - the view reference to check. |
public boolean | isEditorAreaVisible() See IWorkbenchPage. |
public boolean | isEditorPinned(IEditorPart editor) See IWorkbenchPage. |
public boolean | isFastView(IViewReference ref) Returns whether the view is fast. |
public boolean | isFixedLayout() Returns whether the layout of the active
perspective is fixed. |
public boolean | isMoveable(IViewReference ref) Return whether the view is moveable or not.
Parameters: ref - the view reference to check. |
public boolean | isPageZoomed() |
public boolean | isPartVisible(IWorkbenchPart part) See IWorkbenchPage. |
public boolean | isPartVisible(IWorkbenchPartReference reference) |
protected boolean | isSaveNeeded() Return true if the perspective has a dirty editor. |
public boolean | isZoomed() Returns whether the page is zoomed.
true if the page is zoomed.NOTE: As of 3.3 this method should always return 'false'when using the new min/max behavior. |
public void | makeFastView(IViewReference ref) Add a fast view. |
protected void | onActivate() This method is called when the page is activated. |
protected void | onDeactivate() This method is called when the page is deactivated. |
public IEditorPart | openEditor(IEditorInput input, String editorID) See IWorkbenchPage. |
public IEditorPart | openEditor(IEditorInput input, String editorID, boolean activate) See IWorkbenchPage. |
public IEditorPart | openEditor(IEditorInput input, String editorID, boolean activate, int matchFlags) See IWorkbenchPage. |
public IEditorPart | openEditor(IEditorInput input, String editorID, boolean activate, int matchFlags, IMemento editorState) This is not public API but for use internally. |
public IEditorPart | openEditorFromDescriptor(IEditorInput input, IEditorDescriptor editorDescriptor, boolean activate, IMemento editorState) |
public void | openEmptyTab() |
public void | openPerspectiveExtras() Opens the perspectives specified in the PERSPECTIVE_BAR_EXTRAS preference (see bug 84226). |
void | partAdded(WorkbenchPartReference ref) This is called by child objects after a part has been added to the page.
The page will in turn notify its listeners. |
void | partRemoved(WorkbenchPartReference ref) This is called by child objects after a part has been added to the page. |
public void | performedShowIn(String partId) The user successfully performed a Show In... |
void | perspectiveActionSetChanged(Perspective perspective, IActionSetDescriptor descriptor, int changeType) |
void | refreshActiveView() |
public void | removeFastView(IViewReference ref) Removes a fast view. |
public void | removePartListener(IPartListener l) Removes an IPartListener from the part service. |
public void | removePartListener(IPartListener2 l) Removes an IPartListener from the part service. |
public void | removePostSelectionListener(ISelectionListener listener) |
public void | removePostSelectionListener(String partId, ISelectionListener listener) |
public void | removePropertyChangeListener(IPropertyChangeListener listener) |
public void | removeSelectionListener(ISelectionListener listener) |
public void | removeSelectionListener(String partId, ISelectionListener listener) |
public void | requestActivation(IWorkbenchPart part) This method is called when a part is activated by clicking within it. |
public void | resetPerspective() Resets the layout for the perspective. |
protected void | resetToolBarLayout() Restore the toolbar layout for the active perspective. |
public void | resizeView(IViewPart part, int width, int height) Allow for programmatically resizing a part. |
public IStatus | restoreState(IMemento memento, IPerspectiveDescriptor activeDescriptor) Restore this page from the memento and ensure that the active
perspective is equals the active descriptor otherwise create a new
perspective for that descriptor. |
public void | reuseEditor(IReusableEditor editor, IEditorInput input) See IWorkbenchPage. |
public boolean | saveAllEditors(boolean confirm) |
public boolean | saveAllEditors(boolean confirm, boolean addNonPartSources) |
public boolean | saveEditor(IEditorPart editor, boolean confirm) Saves an editors in the workbench. |
protected boolean | savePart(ISaveablePart saveable, IWorkbenchPart part, boolean confirm) |
public void | savePerspective() Saves the current perspective. |
public void | savePerspectiveAs(IPerspectiveDescriptor newDesc) Saves the perspective. |
public IStatus | saveState(IMemento memento) Save the state of the page. |
public void | setEditorAreaVisible(boolean showEditorArea) See IWorkbenchPage. |
public void | setEditorReuseThreshold(int openEditors) |
public void | setPartState(IWorkbenchPartReference ref, int state) |
public void | setPerspective(IPerspectiveDescriptor desc) Sets the perspective. |
public void | setState(IWorkbenchPartReference ref, int newState) Sets the state of the given part. |
public void | setWorkingSet(IWorkingSet newWorkingSet) Sets the active working set for the workbench page. |
public void | setWorkingSets(IWorkingSet[] newWorkingSets) |
public void | showActionSet(String actionSetID) |
public IViewPart | showView(String viewID) See IWorkbenchPage. |
public IViewPart | showView(String viewID, String secondaryID, int mode) |
public void | sortShowInPartIds(ArrayList partIds) Sorts the given collection of show in target part ids in MRU order. |
public void | testInvariants() Sanity-checks the objects in this page. |
public void | toggleFastView(IViewReference ref) Toggles the visibility of a fast view. |
public void | toggleZoom(IWorkbenchPartReference ref) |
public void | unzoomAllPerspectives() Forces all perspectives on the page to zoom out. |
public void | updateActionBars() updateActionBars method comment. |
public void | zoomOut() |