Package org.eclipse.ui
Interface IWorkbenchActionConstants
- All Known Subinterfaces:
ITextEditorActionConstants
public interface IWorkbenchActionConstants
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:
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated.in 3.0.static final String
Edit menu: name of group for extra Add-like actions (value"add.ext"
).static final String
Deprecated.in 3.0.static final String
Deprecated.in 3.0.static final String
Deprecated.in 3.0.static final String
Deprecated.in 3.0.static final String
Workbench menu: name of group for extra Build-like actions (value"build.ext"
).static final String
Group id for build group.static final String
Deprecated.in 3.0.static final String
Deprecated.in 3.0.static final String
Deprecated.in 3.0.static final String
File menu: name of group for extra Close-like actions (value"close.ext"
).static final String
Deprecated.in 3.0.static final String
Deprecated.in 3.0.static final String
Deprecated.in 3.0.static final String
Edit menu: name of group for extra Cut-like actions (value"cut.ext"
).static final String
Deprecated.in 3.0.static final String
Edit menu: name of group for end of menu (value"editEnd"
).static final String
Group id for build group.static final String
Edit menu: name of group for start of menu (value"editStart"
).static final String
Deprecated.in 3.0.static final String
File menu: name of group for end of menu (value"fileEnd"
).static final String
File menu: name of group for start of menu (value"fileStart"
).static final String
Deprecated.in 3.0.static final String
Edit menu: name of group for extra Find-like actions (value"find.ext"
).static final String
Deprecated.in 3.0.static final String[]
Deprecated.in 3.0static final String
Navigate menu: name of standard Go Into global action (value"goInto"
).static final String
Navigate menu: name of standard Go To submenu (value"goTo"
).static final String
Navigate menu: name of standard Go To Resource global action (value"goToResource"
).static final String
Pop-up menu: name of group for Add actions (value"group.add"
).static final String
Coolbar: name of group for application created actionsstatic final String
Toolbar: name of group for editor action bars.static final String
Pop-up menu: name of group for File actions (value"group.file"
).static final String
Coolbar: name of group for help actions and contributionsstatic final String
Pop-up menu: name of group for Managing actions (value"group.managing"
).static final String
Pop-up menu: name of group for Reorganize actions (value"group.reorganize"
).static final String
Pop-up menu: name of group for Show In actions (value"group.showIn"
).static final String
Help menu: name of group for end of menu (value"helpEnd"
).static final String
Help menu: name of group for start of menu (value"helpStart"
).static final String
Group id for history toolbar group.static final String
Deprecated.in 3.0.static final String
File menu: name of group for extra Import-like actions (value"import.ext"
).static final String
Launch menu: name of group for launching additional windows.static final String
Name of standard Edit menu (value"edit"
).static final String
Name of standard File menu (value"file"
).static final String
Name of standard Help menu (value"help"
).static final String
Name of Launch window menu (value"launch"
).static final String
Name of standard Navigate menu (value"navigate"
).static final String
Name of standard Perspective menu (value"perspective"
).static final String
Name of standard Project menu (value"project"
).static final String
ID of the Project configure popup menu, can be used in menuContributions and objectContributions.static final String
Deprecated.Since 3.0.static final String
Name of standard Window menu (value"window"
).static final String
Deprecated.Since 3.0.static final String
Name of group for adding new top-level menus (value"additions"
).static final String
[Issue: MENU_PREFIX is "".static final String
Deprecated.in 3.0.static final String
File menu: name of "Most Recently Used File" group.static final String
Navigate menu: name of group for end of menu (value"navEnd"
).static final String
Navigate menu: name of group for start of menu (value"navStart"
).static final String
Deprecated.in 3.0.static final String
File menu: name of group for extra New-like actions (value"new.ext"
).static final String
Group id for new toolbar group.static final String
Deprecated.in 3.0.static final String
File and Navigate menu: name of group for extra Open actions (value"open.ext"
).static final String
Deprecated.in 3.0.static final String
Deprecated.in 3.0.static final String
Perspective menu: name of group for end of menu (value"perspectiveStartEnd"
).static final String
Perspective menu: name of group for start of menu (value"perspectiveStart"
).static final String
Group id for pin toolbar group.static final String
Deprecated.in 3.0.static final String
Deprecated.in 3.0.static final String
File menu: name of group for extra Print-like actions (value"print.ext"
).static final String
Project menu: name of group for start of menu (value"projEnd"
).static final String
Project menu: name of group for start of menu (value"projStart"
).static final String
Deprecated.in 3.0.static final String
Deprecated.in 3.0.static final String
Deprecated.in 3.0.static final String
Deprecated.in 3.0.static final String
Deprecated.in 3.0.static final String
Deprecated.in 3.0.static final String
Deprecated.in 3.0.static final String
Deprecated.in 3.0.static final String
Deprecated.in 3.0.static final String
Deprecated.in 3.0.static final String
Deprecated.in 3.0.static final String
File menu: name of group for extra Save-like actions (value"save.ext"
).static final String
Group id for save group.static final String
Deprecated.in 3.0.static final String
[Issue: SEP is "/".static final String
Navigate menu: name of group for extra Show actions (value"show.ext"
).static final String
Deprecated.static final String
Deprecated.this action will be removed soon; use SHOW_IN insteadstatic final String
Workbench toolbar id for edit toolbar group.static final String
Workbench toolbar id for file toolbar group.static final String
Workbench toolbar id for help toolbar group.static final String
Workbench toolbar id for navigate toolbar group.static final String
Deprecated.in 3.0.static final String
Edit menu: name of group for extra Undo-like actions (value"undo.ext"
).static final String
Navigate menu: name of standard Up global action (value"up"
).static final String
View menu: name of group for additional view-like items.static final String
Workbench menu: name of group for end of menu (value"wbEnd"
).static final String
Workbench menu: name of group for start of menu (value"wbStart"
).static final String
Window menu: name of group for additional window-like items.
-
Field Details
-
MENU_PREFIX
[Issue: MENU_PREFIX is "". It is used to prefix some of the other constants. There doesn't seem to be much point for this. Recommend deleting it. ]
- See Also:
-
SEP
[Issue: SEP is "/". It is not used anywhere. Recommend deleting it.]
- See Also:
-
M_FILE
Name of standard File menu (value"file"
).- See Also:
-
M_EDIT
Name of standard Edit menu (value"edit"
).- See Also:
-
M_VIEW
Deprecated.Since 3.0. This is no longer used.Name of standard View menu (value"view"
).- See Also:
-
M_WORKBENCH
Deprecated.Since 3.0. This is no longer used.Name of standard Workbench menu (value"workbench"
).- See Also:
-
M_PERSPECTIVE
Name of standard Perspective menu (value"perspective"
).- Since:
- 3.107
- See Also:
-
M_NAVIGATE
Name of standard Navigate menu (value"navigate"
).- See Also:
-
M_PROJECT
Name of standard Project menu (value"project"
).- See Also:
-
M_WINDOW
Name of standard Window menu (value"window"
).- See Also:
-
M_LAUNCH
Name of Launch window menu (value"launch"
).- See Also:
-
M_HELP
Name of standard Help menu (value"help"
).- See Also:
-
M_PROJECT_CONFIGURE
ID of the Project configure popup menu, can be used in menuContributions and objectContributions.- Since:
- 3.5
- See Also:
-
MB_ADDITIONS
Name of group for adding new top-level menus (value"additions"
).- See Also:
-
FILE_START
File menu: name of group for start of menu (value"fileStart"
).- See Also:
-
FILE_END
File menu: name of group for end of menu (value"fileEnd"
).- See Also:
-
NEW
Deprecated.in 3.0. Useorg.eclipse.ui.ActionFactory.NEW.getId()
instead.File menu: name of standard New action (value"new"
).- See Also:
-
NEW_EXT
File menu: name of group for extra New-like actions (value"new.ext"
).- See Also:
-
CLOSE
Deprecated.in 3.0. UseActionFactory.CLOSE.getId()
instead.File menu: name of standard Close action (value"close"
).- See Also:
-
CLOSE_ALL
Deprecated.in 3.0. UseActionFactory.CLOSE_ALL.getId()
instead.File menu: name of standard Close All action (value"closeAll"
).- See Also:
-
CLOSE_EXT
File menu: name of group for extra Close-like actions (value"close.ext"
).- See Also:
-
SAVE
Deprecated.in 3.0. UseActionFactory.SAVE.getId()
instead.File menu: name of standard Save action (value"save"
).- See Also:
-
SAVE_AS
Deprecated.in 3.0. UseActionFactory.SAVE_AS.getId()
instead.File menu: name of standard Save As action (value"saveAs"
).- See Also:
-
SAVE_ALL
Deprecated.in 3.0. UseActionFactory.SAVE_ALL.getId()
instead.File menu: name of standard Save All action (value"saveAll"
).- See Also:
-
SAVE_EXT
File menu: name of group for extra Save-like actions (value"save.ext"
).- See Also:
-
PRINT
Deprecated.in 3.0. UseActionFactory.PRINT.getId()
instead.File menu: name of standard Print global action (value"print"
).- See Also:
-
PRINT_EXT
File menu: name of group for extra Print-like actions (value"print.ext"
).- Since:
- 3.0
- See Also:
-
IMPORT
Deprecated.in 3.0. Useorg.eclipse.ui.ActionFactory.IMPORT.getId()
instead.File menu: name of standard Import action (value"import"
).- See Also:
-
EXPORT
Deprecated.in 3.0. Useorg.eclipse.ui.ActionFactory.EXPORT.getId()
instead.File menu: name of standard Export action (value"export"
).- See Also:
-
IMPORT_EXT
File menu: name of group for extra Import-like actions (value"import.ext"
).- See Also:
-
MRU
File menu: name of "Most Recently Used File" group. (value"mru"
).- See Also:
-
QUIT
Deprecated.in 3.0. UseActionFactory.QUIT.getId()
instead.File menu: name of standard Quit action (value"quit"
).- See Also:
-
EDIT_START
Edit menu: name of group for start of menu (value"editStart"
).- See Also:
-
EDIT_END
Edit menu: name of group for end of menu (value"editEnd"
).- See Also:
-
UNDO
Deprecated.in 3.0. UseActionFactory.UNDO.getId()
instead.Edit menu: name of standard Undo global action (value"undo"
).- See Also:
-
REDO
Deprecated.in 3.0. UseActionFactory.REDO.getId()
instead.Edit menu: name of standard Redo global action (value"redo"
).- See Also:
-
UNDO_EXT
Edit menu: name of group for extra Undo-like actions (value"undo.ext"
).- See Also:
-
CUT
Deprecated.in 3.0. UseActionFactory.CUT.getId()
instead.Edit menu: name of standard Cut global action (value"cut"
).- See Also:
-
COPY
Deprecated.in 3.0. UseActionFactory.COPY.getId()
instead.Edit menu: name of standard Copy global action (value"copy"
).- See Also:
-
PASTE
Deprecated.in 3.0. UseActionFactory.PASTE.getId()
instead.Edit menu: name of standard Paste global action (value"paste"
).- See Also:
-
CUT_EXT
Edit menu: name of group for extra Cut-like actions (value"cut.ext"
).- See Also:
-
DELETE
Deprecated.in 3.0. UseActionFactory.DELETE.getId()
instead.Edit menu: name of standard Delete global action (value"delete"
).- See Also:
-
FIND
Deprecated.in 3.0. UseActionFactory.FIND.getId()
instead.Edit menu: name of standard Find global action (value"find"
).- See Also:
-
FIND_EXT
Edit menu: name of group for extra Find-like actions (value"find.ext"
).- See Also:
-
SELECT_ALL
Deprecated.in 3.0. UseActionFactory.SELECT_ALL.getId()
instead.Edit menu: name of standard Select All global action (value"selectAll"
).- See Also:
-
BOOKMARK
Deprecated.in 3.0. Useorg.eclipse.ui.ide.IDEActionFactory.BOOKMARK.getId()
instead.Edit menu: name of standard Add Bookmark global action (value"bookmark"
).- See Also:
-
ADD_TASK
Deprecated.in 3.0. Useorg.eclipse.ui.ide.IDEActionFactory.ADD_TASK.getId()
instead.Edit menu: name of standard Add Task global action (value"addTask"
).- See Also:
-
ADD_EXT
Edit menu: name of group for extra Add-like actions (value"add.ext"
).- See Also:
-
WB_START
Workbench menu: name of group for start of menu (value"wbStart"
).- See Also:
-
WB_END
Workbench menu: name of group for end of menu (value"wbEnd"
).- See Also:
-
BUILD_EXT
Workbench menu: name of group for extra Build-like actions (value"build.ext"
).- See Also:
-
BUILD
Deprecated.in 3.0. Useorg.eclipse.ui.ide.IDEActionFactory.BUILD.getId()
instead.Workbench menu: name of standard Build action (value"build"
).- See Also:
-
REBUILD_ALL
Deprecated.in 3.0. Useorg.eclipse.ui.ide.IDEActionFactory.REBUILD_ALL.getId()
instead.Workbench menu: name of standard Rebuild All action (value"rebuildAll"
).- See Also:
-
TOOLBAR_FILE
Workbench toolbar id for file toolbar group.- Since:
- 2.1
- See Also:
-
TOOLBAR_EDIT
Workbench toolbar id for edit toolbar group.- Since:
- 3.111
- See Also:
-
TOOLBAR_NAVIGATE
Workbench toolbar id for navigate toolbar group.- Since:
- 2.1
- See Also:
-
TOOLBAR_HELP
Workbench toolbar id for help toolbar group.- Since:
- 3.1
- See Also:
-
PIN_GROUP
Group id for pin toolbar group.- Since:
- 2.1
- See Also:
-
HISTORY_GROUP
Group id for history toolbar group.- Since:
- 2.1
- See Also:
-
NEW_GROUP
Group id for new toolbar group.- Since:
- 2.1
- See Also:
-
SAVE_GROUP
Group id for save group.- Since:
- 2.1
- See Also:
-
EDIT_GROUP
Group id for build group.- Since:
- 3.111
- See Also:
-
BUILD_GROUP
Group id for build group.- Since:
- 2.1
- See Also:
-
GROUP_MANAGING
Pop-up menu: name of group for Managing actions (value"group.managing"
).- See Also:
-
GROUP_REORGANIZE
Pop-up menu: name of group for Reorganize actions (value"group.reorganize"
).- See Also:
-
GROUP_ADD
Pop-up menu: name of group for Add actions (value"group.add"
).- See Also:
-
GROUP_FILE
Pop-up menu: name of group for File actions (value"group.file"
).- See Also:
-
GROUP_SHOW_IN
Pop-up menu: name of group for Show In actions (value"group.showIn"
).- Since:
- 2.1
- See Also:
-
GROUP_APP
Coolbar: name of group for application created actions- Since:
- 3.0
- See Also:
-
GROUP_EDITOR
Toolbar: name of group for editor action bars.- See Also:
-
GROUP_HELP
Coolbar: name of group for help actions and contributions- Since:
- 3.1
- See Also:
-
VIEW_EXT
View menu: name of group for additional view-like items. (value"additions"
).- See Also:
-
WINDOW_EXT
Window menu: name of group for additional window-like items. (value"additions"
).- See Also:
-
LAUNCH_EXT
Launch menu: name of group for launching additional windows. (value"additions"
).- See Also:
-
REVERT
Deprecated.in 3.0. UseActionFactory.REVERT.getId()
instead.File menu: name of standard Revert global action (value"revert"
).- See Also:
-
REFRESH
Deprecated.in 3.0. UseActionFactory.REFRESH.getId()
instead.File menu: name of standard Refresh global action (value"refresh"
).- See Also:
-
PROPERTIES
Deprecated.in 3.0. UseActionFactory.PROPERTIES.getId()
instead.File menu: name of standard Properties global action (value"properties"
).- See Also:
-
MOVE
Deprecated.in 3.0. UseActionFactory.MOVE.getId()
instead.Edit menu: name of standard Move global action (value"move"
).- See Also:
-
RENAME
Deprecated.in 3.0. UseActionFactory.RENAME.getId()
instead.Edit menu: name of standard Rename global action (value"rename"
).- See Also:
-
PERSPECTIVE_START
Perspective menu: name of group for start of menu (value"perspectiveStart"
).- Since:
- 3.107
- See Also:
-
PERSPECTIVE_END
Perspective menu: name of group for end of menu (value"perspectiveStartEnd"
).- Since:
- 3.107
- See Also:
-
NAV_START
Navigate menu: name of group for start of menu (value"navStart"
).- See Also:
-
NAV_END
Navigate menu: name of group for end of menu (value"navEnd"
).- See Also:
-
OPEN_EXT
File and Navigate menu: name of group for extra Open actions (value"open.ext"
).- See Also:
-
SHOW_EXT
Navigate menu: name of group for extra Show actions (value"show.ext"
).- See Also:
-
GO_INTO
Navigate menu: name of standard Go Into global action (value"goInto"
).- See Also:
-
GO_TO
Navigate menu: name of standard Go To submenu (value"goTo"
).- See Also:
-
GO_TO_RESOURCE
Navigate menu: name of standard Go To Resource global action (value"goToResource"
).- See Also:
-
SYNC_EDITOR
Deprecated.this action will be removed soon; use SHOW_IN insteadNavigate menu: name of standard Sync With Editor global action (value"syncEditor"
).- See Also:
-
SHOW_IN
Deprecated.Navigate menu: name of standard Show In... action (value"showIn"
).- Since:
- 2.1
- See Also:
-
BACK
Deprecated.in 3.0. UseActionFactory.BACK.getId()
instead.Navigate menu: name of standard Back global action (value"back"
).- See Also:
-
FORWARD
Deprecated.in 3.0. UseActionFactory.FORWARD.getId()
instead.Navigate menu: name of standard Forward global action (value"forward"
).- See Also:
-
UP
Navigate menu: name of standard Up global action (value"up"
).- See Also:
-
NEXT
Deprecated.in 3.0. UseActionFactory.NEXT.getId()
instead.Navigate menu: name of standard Next global action (value"next"
).- See Also:
-
PREVIOUS
Deprecated.in 3.0. UseActionFactory.PREVIOUS.getId()
instead.Navigate menu: name of standard Up global action (value"previous"
).- See Also:
-
PROJ_START
Project menu: name of group for start of menu (value"projStart"
).- See Also:
-
PROJ_END
Project menu: name of group for start of menu (value"projEnd"
).- See Also:
-
BUILD_PROJECT
Deprecated.in 3.0. Useorg.eclipse.ui.ide.IDEActionFactory.BUILD_PROJECT.getId()
instead.Project menu: name of standard Build Project global action (value"buildProject"
).- See Also:
-
REBUILD_PROJECT
Deprecated.in 3.0. Useorg.eclipse.ui.ide.IDEActionFactory.REBUILD_PROJECT.getId()
instead.Project menu: name of standard Rebuild Project global action (value"rebuildProject"
).- See Also:
-
OPEN_PROJECT
Deprecated.in 3.0. Useorg.eclipse.ui.ide.IDEActionFactory.OPEN_PROJECT.getId()
instead.Project menu: name of standard Open Project global action (value"openProject"
).- See Also:
-
CLOSE_PROJECT
Deprecated.in 3.0. Useorg.eclipse.ui.ide.IDEActionFactory.CLOSE_PROJECT.getId()
instead.Project menu: name of standard Close Project global action (value"closeProject"
).- See Also:
-
HELP_START
Help menu: name of group for start of menu (value"helpStart"
).- See Also:
-
HELP_END
Help menu: name of group for end of menu (value"helpEnd"
).- See Also:
-
ABOUT
Deprecated.in 3.0. UseActionFactory.ABOUT.getId()
instead.Help menu: name of standard About action (value"about"
).- See Also:
-
GLOBAL_ACTIONS
Deprecated.in 3.0Standard global actions in a workbench window.
-