|
|||||||||
| Home >> All >> org >> eclipse >> [ ui overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.eclipse.ui
Interface IWorkbenchWindow

- All Superinterfaces:
- IPageService, org.eclipse.jface.operation.IRunnableContext
- public interface IWorkbenchWindow
- extends IPageService, org.eclipse.jface.operation.IRunnableContext
A workbench window is a top level window in a workbench. Visually, a workbench window has a menubar, a toolbar, a status bar, and a main area for displaying a single page consisting of a collection of views and editors.
Each workbench window has a collection of 0 or more pages; the active page is the one that is being presented to the end user; at most one page is active in a window at a time.
This interface is not intended to be implemented by clients.
| Method Summary | |
boolean |
close()
Closes this workbench window. |
IWorkbenchPage |
getActivePage()
Returns the currently active page for this workbench window. |
IWorkbenchPage[] |
getPages()
Returns a list of the pages in this workbench window. |
IPartService |
getPartService()
Returns the part service which tracks part activation within this workbench window. |
ISelectionService |
getSelectionService()
Returns the selection service which tracks selection within this workbench window. |
org.eclipse.swt.widgets.Shell |
getShell()
Returns this workbench window's shell. |
IWorkbench |
getWorkbench()
Returns the workbench for this window. |
boolean |
isApplicationMenu(java.lang.String menuId)
Returns whether the specified menu is an application menu as opposed to a part menu. |
IWorkbenchPage |
openPage(org.eclipse.core.runtime.IAdaptable input)
Creates and opens a new workbench page. |
IWorkbenchPage |
openPage(java.lang.String perspectiveId,
org.eclipse.core.runtime.IAdaptable input)
Creates and opens a new workbench page. |
void |
setActivePage(IWorkbenchPage page)
Sets or clears the currently active page for this workbench window. |
| Methods inherited from interface org.eclipse.ui.IPageService |
addPageListener, addPerspectiveListener, removePageListener, removePerspectiveListener |
| Methods inherited from interface org.eclipse.jface.operation.IRunnableContext |
run |
| Method Detail |
close
public boolean close()
- Closes this workbench window.
If the window has an open editor with unsaved content, the user will be given the opportunity to save it.
getActivePage
public IWorkbenchPage getActivePage()
- Returns the currently active page for this workbench window.
- Specified by:
getActivePagein interfaceIPageService
getPages
public IWorkbenchPage[] getPages()
- Returns a list of the pages in this workbench window.
Note that each window has its own pages; pages are never shared between different windows.
getPartService
public IPartService getPartService()
- Returns the part service which tracks part activation within this
workbench window.
getSelectionService
public ISelectionService getSelectionService()
- Returns the selection service which tracks selection within this
workbench window.
getShell
public org.eclipse.swt.widgets.Shell getShell()
- Returns this workbench window's shell.
getWorkbench
public IWorkbench getWorkbench()
- Returns the workbench for this window.
isApplicationMenu
public boolean isApplicationMenu(java.lang.String menuId)
- Returns whether the specified menu is an application menu as opposed to
a part menu. Application menus contain items which affect the workbench
or window. Part menus contain items which affect the active part (view
or editor).
This is typically used during "in place" editing. Application menus should be preserved during menu merging. All other menus may be removed from the window.
openPage
public IWorkbenchPage openPage(java.lang.String perspectiveId, org.eclipse.core.runtime.IAdaptable input) throws WorkbenchException
- Creates and opens a new workbench page. The perspective of the new page
is defined by the specified perspective ID. The new page become active.
Note: Since release 2.0, a window is limited to contain at most one page. If a page exist in the window when this method is used, then another window is created for the new page. Callers are strongly recommended to use the
IWorkbench.showPerspectiveAPIs to programmatically show a perspective.
openPage
public IWorkbenchPage openPage(org.eclipse.core.runtime.IAdaptable input) throws WorkbenchException
- Creates and opens a new workbench page. The default perspective is used
as a template for creating the page. The page becomes active.
Note: Since release 2.0, a window is limited to contain at most one page. If a page exist in the window when this method is used, then another window is created for the new page. Callers are strongly recommended to use the
IWorkbench.showPerspectiveAPIs to programmatically show a perspective.
setActivePage
public void setActivePage(IWorkbenchPage page)
- Sets or clears the currently active page for this workbench window.
|
|||||||||
| Home >> All >> org >> eclipse >> [ ui overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC