Method Summary |
|
final public void | addShowingMenus(Set menuIds, ISelection localSelection, ISelection localEditorInput) Adds the ids of a menu that is now showing to the menu source provider. |
public void | addWindowListener(IWindowListener l) |
public void | addWorkbenchListener(IWorkbenchListener listener) |
public boolean | close() |
boolean | close(int returnCode, boolean force) Closes the workbench, returning the given return code from the run
method. |
final public static int | createAndRunWorkbench(Display display, WorkbenchAdvisor advisor) Creates the workbench and associates it with the the given display and
workbench advisor, and runs the workbench UI. |
public static Display | createDisplay() Creates the Display to be used by the workbench. |
public ILocalWorkingSetManager | createLocalWorkingSetManager() |
void | firePostShutdown() Fire workbench postShutdown event. |
boolean | firePreShutdown(boolean forced) |
protected void | fireWindowActivated(IWorkbenchWindow window) Fire window activated event. |
protected void | fireWindowClosed(IWorkbenchWindow window) Fire window closed event. |
protected void | fireWindowDeactivated(IWorkbenchWindow window) Fire window deactivated event. |
protected void | fireWindowOpened(IWorkbenchWindow window) Fire window opened event. |
public IWorkbenchWindow | getActiveWorkbenchWindow() |
public IWorkbenchActivitySupport | getActivitySupport() |
final public Object | getAdapter(Class key) |
WorkbenchAdvisor | getAdvisor() Returns the workbench advisor that created this workbench.
IMPORTANT This method is declared package-private to prevent regular
plug-ins from downcasting IWorkbench to Workbench and getting hold of the
workbench advisor that would allow them to tamper with the workbench. |
public IWorkbenchBrowserSupport | getBrowserSupport() |
public IWorkbenchCommandSupport | getCommandSupport() |
public IWorkbenchContextSupport | getContextSupport() |
public IDecoratorManager | getDecoratorManager() |
public IAdaptable | getDefaultPageInput() Returns the default workbench window page input. |
public String | getDefaultPerspectiveId() Returns the default perspective id, which may be null . |
public String[] | getDisabledEarlyActivatedPlugins() Returns the ids of the early activated plug-ins that have been disabled
by the user. |
public Display | getDisplay() |
public String[] | getEarlyActivatedPlugins() Returns the ids of all plug-ins that extend the
org.eclipse.ui.startup extension point. |
public EditorHistory | getEditorHistory() |
public IEditorRegistry | getEditorRegistry() |
public IElementFactory | getElementFactory(String factoryId) |
public IWizardRegistry | getExportWizardRegistry() |
public IExtensionTracker | getExtensionTracker() |
public IWorkbenchHelpSystem | getHelpSystem() |
public IWizardRegistry | getImportWizardRegistry() |
final public static Workbench | getInstance() Returns the one and only instance of the workbench, if there is one. |
public IntroDescriptor | getIntroDescriptor() |
public IIntroManager | getIntroManager() |
public String | getMainPreferencePageId() Returns the id of the preference page that should be presented most
prominently. |
public IWizardRegistry | getNewWizardRegistry() |
public IWorkbenchOperationSupport | getOperationSupport() |
public IPerspectiveRegistry | getPerspectiveRegistry() |
public PreferenceManager | getPreferenceManager() |
public IPreferenceStore | getPreferenceStore() |
public String | getPresentationId() Return the presentation ID specified by the preference or the default ID
if undefined. |
public IProgressService | getProgressService() |
final public Object | getService(Class key) |
public ISharedImages | getSharedImages() |
public IThemeManager | getThemeManager() |
public IViewRegistry | getViewRegistry() |
WindowManager | getWindowManager() Returns the window manager for this workbench. |
WorkbenchConfigurer | getWorkbenchConfigurer() Returns the unique object that applications use to configure the
workbench. |
WorkbenchIntroManager | getWorkbenchIntroManager() |
public static WorkbenchTestable | getWorkbenchTestable() Returns the testable object facade, for use by the test harness. |
public int | getWorkbenchWindowCount() |
public IWorkbenchWindow[] | getWorkbenchWindows() |
public IWorkingSetManager | getWorkingSetManager() |
final public boolean | hasService(Class key) |
public boolean | isClosing() |
public boolean | isRunning() Returns true if the workbench is running,
false if it has been terminated. |
public boolean | isStarting() Returns true if the Workbench is in the process of starting. |
final public void | largeUpdateEnd()
Indicates the end of a large update within the workbench. |
final public void | largeUpdateStart()
Indicates the start of a large update within the workbench. |
void | openFirstTimeWindow() Opens the initial workbench window. |
public IWorkbenchWindow | openWorkbenchWindow(IAdaptable input) |
public IWorkbenchWindow | openWorkbenchWindow(String perspID, IAdaptable input) |
final public void | registerService(Class api, Object service) Registers a service with this locator. |
final public void | removeShowingMenus(Set menuIds, ISelection localSelection, ISelection localEditorInput) Removes the ids of a menu that is now hidden from the menu source
provider. |
public void | removeWindowListener(IWindowListener l) |
public void | removeWorkbenchListener(IWorkbenchListener listener) |
public boolean | restart() |
IStatus | restoreState() |
IWorkbenchWindow | restoreWorkbenchWindow(IMemento memento) |
public boolean | saveAll(IShellProvider shellProvider, IRunnableContext runnableContext, ISaveableFilter filter, boolean confirm) |
public boolean | saveAllEditors(boolean confirm) |
void | setActivatedWindow(WorkbenchWindow window) |
public void | setIntroDescriptor(IntroDescriptor descriptor) This method exists as a test hook. |
public IWorkbenchPage | showPerspective(String perspectiveId, IWorkbenchWindow window) |
public IWorkbenchPage | showPerspective(String perspectiveId, IWorkbenchWindow window, IAdaptable input) |