|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ui.PlatformUI
The central class for access to the Eclipse Platform User Interface. This class cannot be instantiated; all functionality is provided by static methods. Features provided:
Field Summary | |
static String | PLUGIN_ID
Identifies the workbench plug-in. |
static int | RETURN_EMERGENCY_CLOSE
Return code (value 3) indicating that the workbench was terminated with a call to IWorkbenchConfigurer#emergencyClose. |
static int | RETURN_OK
Return code (value 0) indicating that the workbench terminated normally. |
static int | RETURN_RESTART
Return code (value 1) indicating that the workbench was terminated with a call to IWorkbench.restart. |
static int | RETURN_UNSTARTABLE
Return code (value 2) indicating that the workbench failed to start. |
Method Summary | |
static int | createAndRunWorkbench(Display display,
WorkbenchAdvisor advisor)
Creates the workbench and associates it with the given display and workbench advisor, and runs the workbench UI. |
static Display | createDisplay()
Creates the Display to be used by the workbench. |
static IPreferenceStore | getPreferenceStore()
Returns the preference store used for publicly settable workbench preferences. |
static TestableObject | getTestableObject()
Returns the testable object facade, for use by the test harness. |
static IWorkbench | getWorkbench()
Returns the workbench. |
static boolean | isWorkbenchRunning()
Returns whether createAndRunWorkbench has been called to create the workbench, and the workbench has yet to terminate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String PLUGIN_ID
public static final int RETURN_OK
public static final int RETURN_RESTART
public static final int RETURN_UNSTARTABLE
public static final int RETURN_EMERGENCY_CLOSE
Method Detail |
public static IWorkbench getWorkbench()
public static boolean isWorkbenchRunning()
public static int createAndRunWorkbench(Display display, WorkbenchAdvisor advisor)
This method is intended to be called by the main class (the "application"). Fails if the workbench UI has already been created.
Use createDisplay to create the display to pass in.
Note that this method is intended to be called by the application (org.eclipse.core.boot.IPlatformRunnable). It must be called exactly once, and early on before anyone else asks getWorkbench() for the workbench.
public static Display createDisplay()
public static TestableObject getTestableObject()
IMPORTANT: This method is only for use by the test harness. Applications and regular plug-ins should not call this method.
public static IPreferenceStore getPreferenceStore()
|
Eclipse Platform Release 3.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.