Package-level Javadoc
Application programming interfaces for interaction
with and extension of the Eclipse Platform User Interface.
Package Specification
This package provides application programming interfaces for interaction
with and extension of the Eclipse Platform User Interface.
The PlatformUI class provides access to a single workbench.
A workbench is the root object for the UI and has one or more workbench
windows. Each workbench window has a collection of workbench
pages, only one of which is active and visible to the end user.
Each workbench page has a collection of workbench parts. A
page's parts are arranged (tiled or stacked) for presentation on the screen.
Within a page and its parts the user can interact with and modify a model
(typically resources in a workspace). There are two kinds of
workbench parts: views and editors. An editor is typically used to
edit or browse a document or input object. A view is typically used
to navigate a hierarchy of information (like the workspace), open an editor,
or display properties for the active editor.
The platform creates a workbench when the workbench plug-in is activated.
Since this happens at most once during the life of the running platform,
there is only one workbench instance. Due to its singular nature, it is
commonly referred to as the workbench.
Within a workbench the user will interact with many different resource
types. Because different tools are required for each, the workbench
defines a number of extension points which allow for the integration of
new tools. There are extension points for views, editors, action
sets, import wizards, export wizards, etc.
Basic IWorkingSetElementAdapter implementation that allows plugins to decribe
simple declarative element adapters.
The executable extension format for this class is as follows: <workingSet
elementAdapterClass="org.eclipse.ui.BasicWorkingSetElementAdapter:class1.to.adapt.to[;option1=value1][;option2=value2],class2.to.adapt.to[;option1=value1][;option2=value2],...">
...
Interface extension to IActionDelegate adding lifecycle methods.
In addition, a runWithEvent method that includes the triggering
SWT event.
An action delegate that implements this interface will have its
runWithEvent(IAction, Event) called instead of its
run(IAction) method.
Clients should implement this interface, in addition to
IActionDelegate or sub-interfaces, if interested in the
triggering event or in the lifecycle of the delegate object.
Clients can choose to subclass the provided abstract implementation
org.
An editor matching strategy allows editor extensions to provide their own
algorithm for matching the input of an open editor of that type to a
given editor input.
The key binding service allows one to query or set the scope of Eclipse for
the purposes of resolving key assignments to commands, and to register
actions to handle specific commands.
Manages a list of entries to keep a history of locations on editors,
enabling the user to go back and forward without losing context.
The history is a list of INavigationLocation and a pointer
to the current location.
An editor can implement this interface and participate in the workbench
session save/restore cycle using IMemento, similar to how
IViewPart currently works.
Workbench parts implement or adapt to this interface to participate
in actions that require a prompt for the user to provide input on
what to do with unsaved data when the part is closed or the Workbench
is shut down.
Note that if a part implements this interface, it is excluded from the
common "prompt to save" dialog, and instead opens its own dialog.
Plug-ins that register a startup extension will be activated after
the Workbench initializes and have an opportunity to run
code that can't be implemented using the normal contribution
mechanisms.
A workbench is the root object for the Eclipse Platform user interface.
A workbench has one or more main windows which present to the end
user information based on some underlying model, typically on resources in an
underlying workspace.
Action ids for standard actions, groups in the workbench menu bar, and
global actions.
This interface contains constants only; it is not intended to be implemented
or extended.
Standard menus
File menu (M_FILE)
Edit menu (M_EDIT)
Window menu (M_WINDOW)
Help menu (M_HELP)
Standard group for adding top level menus
Extra top level menu group (MB_ADDITIONS)
Global actions
Undo (UNDO)
Redo (REDO)
Cut (CUT)
Copy (COPY)
Paste (PASTE)
Delete (DELETE)
Find (FIND)
Select All (SELECT_ALL)
Add Bookmark (BOOKMARK)
Standard File menu actions
Start group (FILE_START)
End group (FILE_END)
New action (NEW)
Extra New-like action group (NEW_EXT)
Close action (CLOSE)
Close All action (CLOSE_ALL)
Extra Close-like action group (CLOSE_EXT)
Save action (SAVE)
Save As action (SAVE_AS)
Save All action (SAVE_ALL)
Extra Save-like action group (SAVE_EXT)
Import action (IMPORT)
Export action (EXPORT)
Extra Import-like action group (IMPORT_EXT)
Quit action (QUIT)
Standard Edit menu actions
Start group (EDIT_START)
End group (EDIT_END)
Undo global action (UNDO)
Redo global action (REDO)
Extra Undo-like action group (UNDO_EXT)
Cut global action (CUT)
Copy global action (COPY)
Paste global action (PASTE)
Extra Cut-like action group (CUT_EXT)
Delete global action (DELETE)
Find global action (FIND)
Select All global action (SELECT_ALL)
Bookmark global action (BOOKMARK)
Standard Perspective menu actions
Extra Perspective-like action group (VIEW_EXT)
Standard Workbench menu actions
Start group (WB_START)
End group (WB_END)
Extra Build-like action group (BUILD_EXT)
Build action (BUILD)
Rebuild All action (REBUILD_ALL)
Standard Window menu actions
Extra Window-like action group (WINDOW_EXT)
Standard Help menu actions
Start group (HELP_START)
End group (HELP_END)
About action (ABOUT)
Standard pop-up menu groups
Managing group (GROUP_MANAGING)
Reorganize group (GROUP_REORGANIZE)
Add group (GROUP_ADD)
File group (GROUP_FILE)
To hook a global action handler, a view should use the following code:
IAction copyHandler = ...;
view.getSite().getActionBars().setGlobalActionHandler(
IWorkbenchActionConstants.COPY,
copyHandler);
For editors, this should be done in the IEditorActionBarContributor.
See Also:org.eclipse.ui.IActionBars.setGlobalActionHandler See Also: Note: many of the remaining non-deprecated constants here are IDE-specific See Also: and should be deprecated and moved to a constant pool at the IDE layer See Also: (e.g.
Extends
IWorkbenchPart , adding the name and status text properties.
Prior to 3.0, a view's title was often modified to show both the part
name and extra status text.