Method Summary |
|
final void | addActionSetsListener(IActionSetsListener listener) |
void | addBackgroundSaveListener(IBackgroundSaveListener listener) |
public void | addPageListener(IPageListener l) |
protected void | addPerspectiveBar(int style) Configures this window to have a perspecive bar. |
public void | addPerspectiveListener(org.eclipse.ui.IPerspectiveListener l) |
public void | addPerspectiveReorderListener(IReorderListener listener) Add a listener for perspective reordering. |
public void | addPropertyChangeListener(IPropertyChangeListener listener) Add a generic property listener. |
public void | addSubmenu(int type) Remembers that this window contains the given submenu. |
public void | addToTrim(IWindowTrim trim, int side) Adds the given control to the specified side of this window's trim. |
protected IWorkbenchPage | busyOpenPage(String perspID, IAdaptable input) Opens a new page. |
protected boolean | canHandleShellCloseEvent() |
public boolean | close() |
public void | closeAllPages(boolean save) Save and close all of the pages. |
protected boolean | closePage(IWorkbenchPage in, boolean save) closePerspective method comment. |
protected void | configureShell(Shell shell) |
protected void | constrainShellSize() |
public boolean | containsSubmenu(int type) Checks to see if this window contains the given type of submenu. |
protected Control | createContents(Composite parent) Creates the contents of the workbench window, including trim controls and
the client composite. |
protected ICoolBarManager | createCoolBarManager2(int style) Returns a new cool bar manager for the window. |
public CustomizePerspectiveDialog | createCustomizePerspectiveDialog(Perspective persp) Creates the perspective customization dialog. |
protected void | createDefaultContents(Shell shell) Creates the default contents and layout of the shell. |
protected MenuManager | createMenuManager()
Returns a new menu manager for this workbench window. |
protected Composite | createPageComposite(Composite parent) Creates and remembers the client composite, under which workbench pages
create their controls. |
protected void | createStatusLine(Shell shell) Delegate to the presentation factory. |
protected StatusLineManager | createStatusLineManager() Delegate to the presentation factory. |
protected IToolBarManager | createToolBarManager2(int style) Returns a new tool bar manager for the window. |
protected void | createTrimWidgets(Shell shell) |
public void | fillActionBars(int flags) Fills the window's real action bars. |
public void | fillActionBars(IActionBarConfigurer2 proxyBars, int flags) Fills the window's proxy action bars. |
void | fireBackgroundSaveStarted() |
void | firePerspectiveActivated(IWorkbenchPage page, IPerspectiveDescriptor perspective) |
void | firePerspectiveChanged(IWorkbenchPage page, IPerspectiveDescriptor perspective, String changeId) |
void | firePerspectiveChanged(IWorkbenchPage page, IPerspectiveDescriptor perspective, IWorkbenchPartReference partRef, String changeId) |
void | firePerspectiveClosed(IWorkbenchPage page, IPerspectiveDescriptor perspective) |
void | firePerspectiveDeactivated(IWorkbenchPage page, IPerspectiveDescriptor perspective) Fires perspective deactivated. |
void | firePerspectiveOpened(IWorkbenchPage page, IPerspectiveDescriptor perspective) |
void | firePerspectivePreDeactivate(IWorkbenchPage page, IPerspectiveDescriptor perspective) Fires perspective deactivated. |
void | firePerspectiveSavedAs(IWorkbenchPage page, IPerspectiveDescriptor oldPerspective, IPerspectiveDescriptor newPerspective) Fires perspective saved as. |
void | fireWindowRestored() Notifies interested parties (namely the advisor) that the window has been
restored from a previously saved state. |
public IActionBarPresentationFactory | getActionBarPresentationFactory() Return the action bar presentation used for creating toolbars. |
public WWinActionBars | getActionBars() Returns the action bars for this window. |
public ActionPresentation | getActionPresentation() |
public IWorkbenchPage | getActivePage() Returns the active page. |
WorkbenchPage | getActiveWorkbenchPage() Returns the active workbench page. |
public boolean | getCoolBarVisible() whether the cool bar should be shown. |
IAdaptable | getDefaultPageInput() Returns the default page input for workbench pages opened in this window. |
ShellPool | getDetachedWindowPool() |
public IExtensionTracker | getExtensionTracker() |
public FastViewBar | getFastViewBar() Returns the fast view bar. |
public boolean | getFastViewBarVisible() The workbench window take on the fastview bar. |
protected Point | getInitialLocation(Point size) |
protected Point | getInitialSize() The WorkbenchWindow implementation of this method
delegates to the window configurer. |
protected Layout | getLayout() Returns the layout for the shell. |
public MenuManager | getMenuManager() Answer the menu manager for this window. |
public int | getNumber() Returns the number. |
protected Composite | getPageComposite() Returns the page composite, under which the window's pages create their
controls. |
public IWorkbenchPage[] | getPages() Returns an array of the pages in the workbench window. |
public IPartService | getPartService() |
public PerspectiveBarManager | getPerspectiveBar() Returns the perspective bar. |
public boolean | getPerspectiveBarVisible() whether the perspective bar should be shown. |
public ProgressRegion | getProgressRegion() |
public ISelectionService | getSelectionService() |
final public Object | getService(Class key) |
public boolean | getShellActivated() |
public boolean | getShowFastViewBars() |
public StatusLineManager | getStatusLineManager() Returns the status line manager for this window (if it has one). |
public boolean | getStatusLineVisible() whether the perspective bar should be shown. |
public String | getToolbarLabel(String actionSetId) |
public ITrimManager | getTrimManager() |
WorkbenchWindowConfigurer | getWindowConfigurer() Returns the unique object that applications use to configure this window.
IMPORTANT This method is declared package-private to prevent regular
plug-ins from downcasting IWorkbenchWindow to WorkbenchWindow and getting
hold of the workbench window configurer that would allow them to tamper
with the workbench window. |
public IWorkbench | getWorkbench() |
final public boolean | hasService(Class key) |
protected void | initializeBounds() The WorkbenchWindow implementation of this method has the
same logic as Window 's implementation, but without the
resize check. |
public boolean | isApplicationMenu(String menuID) |
protected boolean | isClosing() |
protected boolean | isCoolBarLocked() Return whether or not the coolbar layout is locked. |
boolean | isWorkbenchCoolItemId(String id) Return whether or not the given id matches the id of the coolitems that
the application creates. |
final public void | largeUpdateEnd()
Indicates the end of a large update within this window. |
final public void | largeUpdateStart()
Indicates the start of a large update within this window. |
void | lockCoolBar(boolean lock) Locks/unlocks the CoolBar for the workbench. |
void | makeVisible() Makes the window visible and frontmost. |
public boolean | okToClose() Called when this window is about to be closed. |
public int | open() |
public IWorkbenchPage | openPage(String perspId, IAdaptable input) Opens a new page.
Note: Since release 2.0, a window is limited to contain at most
one page. |
public IWorkbenchPage | openPage(IAdaptable input) Opens a new page.
Note: Since release 2.0, a window is limited to contain at most
one page. |
protected int | perspectiveBarStyle() Return the style bits for the shortcut bar. |
void | registerGlobalAction(IAction globalAction) |
final void | removeActionSetsListener(IActionSetsListener listener) |
void | removeBackgroundSaveListener(IBackgroundSaveListener listener) |
public void | removePageListener(IPageListener l) |
public void | removePerspectiveListener(org.eclipse.ui.IPerspectiveListener l) |
public void | removePropertyChangeListener(IPropertyChangeListener listener) Removes a generic property listener. |
public IStatus | restoreState(IMemento memento, IPerspectiveDescriptor activeDescriptor) |
public void | run(boolean fork, boolean cancelable, IRunnableWithProgress runnable) |
public IStatus | saveState(IMemento memento) |
public void | setActivePage(IWorkbenchPage in) Sets the active page within the window. |
public void | setBannerCurve(boolean square) If the perspective bar is drawn on the top right corner of the window,
then this method changes its appearance from curved to square. |
public void | setCoolBarVisible(boolean visible) Parameters: visible - whether the cool bar should be shown. |
public void | setFastViewBarVisible(boolean visible) Tell the workbench window a visible state for the fastview bar. |
public void | setPerspectiveBarLocation(String location) |
public void | setPerspectiveBarVisible(boolean visible) Parameters: visible - whether the perspective bar should be shown. |
public void | setStatusLineVisible(boolean visible) Parameters: visible - whether the perspective bar should be shown. |
public void | showHeapStatus(boolean selection) |
protected boolean | showTopSeperator() |
void | submitGlobalActions()
Submits the action handlers for action set actions and global actions.
Global actions are given priority, so that if a global action and an
action set action both handle the same command, the global action is
given priority.
These submissions are submitted as Priority.LEGACY , which
means that they are the lowest priority. |
public void | toggleToolbarVisibility() Toggle the visibility of the coolbar/perspective bar. |
protected boolean | toolBarChildrenExist() Returns whether or not children exist for the Window's toolbar control. |
public void | updateActionBars() update the action bars. |
public void | updateActionSets() Update the visible action sets. |
public void | updateFastViewBar() Updates the fast view bar, if present. |