|
Eclipse Platform Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
M_FILE
)M_EDIT
)M_WINDOW
)M_HELP
)MB_ADDITIONS
)UNDO
)REDO
)CUT
)COPY
)PASTE
)DELETE
)FIND
)SELECT_ALL
)BOOKMARK
)FILE_START
)FILE_END
)NEW
)NEW_EXT
)CLOSE
)CLOSE_ALL
)CLOSE_EXT
)SAVE
)SAVE_AS
)SAVE_ALL
)SAVE_EXT
)IMPORT
)EXPORT
)IMPORT_EXT
)QUIT
)EDIT_START
)EDIT_END
)UNDO
)REDO
)UNDO_EXT
)CUT
)COPY
)PASTE
)CUT_EXT
)DELETE
)FIND
)SELECT_ALL
)BOOKMARK
)VIEW_EXT
)WB_START
)WB_END
)BUILD_EXT
)BUILD
)REBUILD_ALL
)WINDOW_EXT
)HELP_START
)HELP_END
)ABOUT
)GROUP_MANAGING
)GROUP_REORGANIZE
)GROUP_ADD
)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
.
Note: many of the remaining non-deprecated constants here are IDE-specific
and should be deprecated and moved to a constant pool at the IDE layer
(e.g. IIDEActionConstants).
Field Summary | |
---|---|
static String |
ABOUT
Deprecated. in 3.0. Use ActionFactory.ABOUT.getId() instead. |
static String |
ADD_EXT
Edit menu: name of group for extra Add-like actions (value "add.ext" ). |
static String |
ADD_TASK
Deprecated. in 3.0. Use org.eclipse.ui.ide.IDEActionFactory.ADD_TASK.getId()
instead. |
static String |
BACK
Deprecated. in 3.0. Use ActionFactory.BACK.getId() instead. |
static String |
BOOKMARK
Deprecated. in 3.0. Use org.eclipse.ui.ide.IDEActionFactory.BOOKMARK.getId()
instead. |
static String |
BUILD
Deprecated. in 3.0. Use org.eclipse.ui.ide.IDEActionFactory.BUILD.getId()
instead. |
static String |
BUILD_EXT
Workbench menu: name of group for extra Build-like actions (value "build.ext" ). |
static String |
BUILD_GROUP
Group id for build group. |
static String |
BUILD_PROJECT
Deprecated. in 3.0. Use org.eclipse.ui.ide.IDEActionFactory.BUILD_PROJECT.getId()
instead. |
static String |
CLOSE
Deprecated. in 3.0. Use ActionFactory.CLOSE.getId() instead. |
static String |
CLOSE_ALL
Deprecated. in 3.0. Use ActionFactory.CLOSE_ALL.getId() instead. |
static String |
CLOSE_EXT
File menu: name of group for extra Close-like actions (value "close.ext" ). |
static String |
CLOSE_PROJECT
Deprecated. in 3.0. Use org.eclipse.ui.ide.IDEActionFactory.CLOSE_PROJECT.getId()
instead. |
static String |
COPY
Deprecated. in 3.0. Use ActionFactory.COPY.getId() instead. |
static String |
CUT
Deprecated. in 3.0. Use ActionFactory.CUT.getId() instead. |
static String |
CUT_EXT
Edit menu: name of group for extra Cut-like actions (value "cut.ext" ). |
static String |
DELETE
Deprecated. in 3.0. Use ActionFactory.DELETE.getId() instead. |
static String |
EDIT_END
Edit menu: name of group for end of menu (value "editEnd" ). |
static String |
EDIT_START
Edit menu: name of group for start of menu (value "editStart" ). |
static String |
EXPORT
Deprecated. in 3.0. Use org.eclipse.ui.ActionFactory.EXPORT.getId()
instead. |
static String |
FILE_END
File menu: name of group for end of menu (value "fileEnd" ). |
static String |
FILE_START
File menu: name of group for start of menu (value "fileStart" ). |
static String |
FIND
Deprecated. in 3.0. Use ActionFactory.FIND.getId() instead. |
static String |
FIND_EXT
Edit menu: name of group for extra Find-like actions (value "find.ext" ). |
static String |
FORWARD
Deprecated. in 3.0. Use ActionFactory.FORWARD.getId() instead. |
static String[] |
GLOBAL_ACTIONS
Deprecated. in 3.0 |
static String |
GO_INTO
Navigate menu: name of standard Go Into global action (value "goInto" ). |
static String |
GO_TO
Navigate menu: name of standard Go To submenu (value "goTo" ). |
static String |
GO_TO_RESOURCE
Navigate menu: name of standard Go To Resource global action (value "goToResource" ). |
static String |
GROUP_ADD
Pop-up menu: name of group for Add actions (value "group.add" ). |
static String |
GROUP_APP
Coolbar: name of group for application created actions |
static String |
GROUP_EDITOR
Toolbar: name of group for editor action bars. |
static String |
GROUP_FILE
Pop-up menu: name of group for File actions (value "group.file" ). |
static String |
GROUP_HELP
Coolbar: name of group for help actions and contributions |
static String |
GROUP_MANAGING
Pop-up menu: name of group for Managing actions (value "group.managing" ). |
static String |
GROUP_REORGANIZE
Pop-up menu: name of group for Reorganize actions (value "group.reorganize" ). |
static String |
GROUP_SHOW_IN
Pop-up menu: name of group for Show In actions (value "group.showIn" ). |
static String |
HELP_END
Help menu: name of group for end of menu (value "helpEnd" ). |
static String |
HELP_START
Help menu: name of group for start of menu (value "helpStart" ). |
static String |
HISTORY_GROUP
Group id for history toolbar group. |
static String |
IMPORT
Deprecated. in 3.0. Use org.eclipse.ui.ActionFactory.IMPORT.getId()
instead. |
static String |
IMPORT_EXT
File menu: name of group for extra Import-like actions (value "import.ext" ). |
static String |
LAUNCH_EXT
Launch menu: name of group for launching additional windows. |
static String |
M_EDIT
Name of standard Edit menu (value "edit" ). |
static String |
M_FILE
Name of standard File menu (value "file" ). |
static String |
M_HELP
Name of standard Help menu (value "help" ). |
static String |
M_LAUNCH
Name of Launch window menu (value "launch" ). |
static String |
M_NAVIGATE
Name of standard Navigate menu (value "navigate" ). |
static String |
M_PROJECT
Name of standard Project menu (value "project" ). |
static String |
M_VIEW
Deprecated. Since 3.0. This is no longer used. |
static String |
M_WINDOW
Name of standard Window menu (value "window" ). |
static String |
M_WORKBENCH
Deprecated. Since 3.0. This is no longer used. |
static String |
MB_ADDITIONS
Name of group for adding new top-level menus (value "additions" ). |
static String |
MENU_PREFIX
[Issue: MENU_PREFIX is "". |
static String |
MOVE
Deprecated. in 3.0. Use ActionFactory.MOVE.getId() instead. |
static String |
MRU
File menu: name of "Most Recently Used File" group. |
static String |
NAV_END
Navigate menu: name of group for end of menu (value "navEnd" ). |
static String |
NAV_START
Navigate menu: name of group for start of menu (value "navStart" ). |
static String |
NEW
Deprecated. in 3.0. Use org.eclipse.ui.ActionFactory.NEW.getId()
instead. |
static String |
NEW_EXT
File menu: name of group for extra New-like actions (value "new.ext" ). |
static String |
NEW_GROUP
Group id for new toolbar group. |
static String |
NEXT
Deprecated. in 3.0. Use ActionFactory.NEXT.getId() instead. |
static String |
OPEN_EXT
File and Navigate menu: name of group for extra Open actions (value "open.ext" ). |
static String |
OPEN_PROJECT
Deprecated. in 3.0. Use org.eclipse.ui.ide.IDEActionFactory.OPEN_PROJECT.getId()
instead. |
static String |
PASTE
Deprecated. in 3.0. Use ActionFactory.PASTE.getId() instead. |
static String |
PIN_GROUP
Group id for pin toolbar group. |
static String |
PREVIOUS
Deprecated. in 3.0. Use ActionFactory.PREVIOUS.getId() instead. |
static String |
PRINT
Deprecated. in 3.0. Use ActionFactory.PRINT.getId() instead. |
static String |
PRINT_EXT
File menu: name of group for extra Print-like actions (value "print.ext" ). |
static String |
PROJ_END
Project menu: name of group for start of menu (value "projEnd" ). |
static String |
PROJ_START
Project menu: name of group for start of menu (value "projStart" ). |
static String |
PROPERTIES
Deprecated. in 3.0. Use ActionFactory.PROPERTIES.getId() instead. |
static String |
QUIT
Deprecated. in 3.0. Use ActionFactory.QUIT.getId() instead. |
static String |
REBUILD_ALL
Deprecated. in 3.0. Use org.eclipse.ui.ide.IDEActionFactory.REBUILD_ALL.getId()
instead. |
static String |
REBUILD_PROJECT
Deprecated. in 3.0. Use org.eclipse.ui.ide.IDEActionFactory.REBUILD_PROJECT.getId()
instead. |
static String |
REDO
Deprecated. in 3.0. Use ActionFactory.REDO.getId() instead. |
static String |
REFRESH
Deprecated. in 3.0. Use ActionFactory.REFRESH.getId() instead. |
static String |
RENAME
Deprecated. in 3.0. Use ActionFactory.RENAME.getId() instead. |
static String |
REVERT
Deprecated. in 3.0. Use ActionFactory.REVERT.getId() instead. |
static String |
SAVE
Deprecated. in 3.0. Use ActionFactory.SAVE.getId() instead. |
static String |
SAVE_ALL
Deprecated. in 3.0. Use ActionFactory.SAVE_ALL.getId() instead. |
static String |
SAVE_AS
Deprecated. in 3.0. Use ActionFactory.SAVE_AS.getId() instead. |
static String |
SAVE_EXT
File menu: name of group for extra Save-like actions (value "save.ext" ). |
static String |
SAVE_GROUP
Group id for save group. |
static String |
SELECT_ALL
Deprecated. in 3.0. Use ActionFactory.SELECT_ALL.getId() instead. |
static String |
SEP
[Issue: SEP is "/". |
static String |
SHOW_EXT
Navigate menu: name of group for extra Show actions (value "show.ext" ). |
static String |
SHOW_IN
Deprecated. |
static String |
SYNC_EDITOR
Deprecated. this action will be removed soon; use SHOW_IN instead |
static String |
TOOLBAR_FILE
Workbench toolbar id for file toolbar group. |
static String |
TOOLBAR_HELP
Workbench toolbar id for help toolbar group. |
static String |
TOOLBAR_NAVIGATE
Workbench toolbar id for navigate toolbar group. |
static String |
UNDO
Deprecated. in 3.0. Use ActionFactory.UNDO.getId() instead. |
static String |
UNDO_EXT
Edit menu: name of group for extra Undo-like actions (value "undo.ext" ). |
static String |
UP
Navigate menu: name of standard Up global action (value "up" ). |
static String |
VIEW_EXT
View menu: name of group for additional view-like items. |
static String |
WB_END
Workbench menu: name of group for end of menu (value "wbEnd" ). |
static String |
WB_START
Workbench menu: name of group for start of menu (value "wbStart" ). |
static String |
WINDOW_EXT
Window menu: name of group for additional window-like items. |
Field Detail |
---|
static final String 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. ]
static final String SEP
[Issue: SEP is "/". It is not used anywhere. Recommend deleting it.]
static final String M_FILE
"file"
).
static final String M_EDIT
"edit"
).
static final String M_VIEW
"view"
).
static final String M_WORKBENCH
"workbench"
).
static final String M_NAVIGATE
"navigate"
).
static final String M_PROJECT
"project"
).
static final String M_WINDOW
"window"
).
static final String M_LAUNCH
"launch"
).
static final String M_HELP
"help"
).
static final String MB_ADDITIONS
"additions"
).
static final String FILE_START
"fileStart"
).
static final String FILE_END
"fileEnd"
).
static final String NEW
org.eclipse.ui.ActionFactory.NEW.getId()
instead."new"
).
static final String NEW_EXT
"new.ext"
).
static final String CLOSE
ActionFactory.CLOSE.getId()
instead."close"
).
static final String CLOSE_ALL
ActionFactory.CLOSE_ALL.getId()
instead."closeAll"
).
static final String CLOSE_EXT
"close.ext"
).
static final String SAVE
ActionFactory.SAVE.getId()
instead."save"
).
static final String SAVE_AS
ActionFactory.SAVE_AS.getId()
instead."saveAs"
).
static final String SAVE_ALL
ActionFactory.SAVE_ALL.getId()
instead."saveAll"
).
static final String SAVE_EXT
"save.ext"
).
static final String PRINT
ActionFactory.PRINT.getId()
instead."print"
).
static final String PRINT_EXT
"print.ext"
).
static final String IMPORT
org.eclipse.ui.ActionFactory.IMPORT.getId()
instead."import"
).
static final String EXPORT
org.eclipse.ui.ActionFactory.EXPORT.getId()
instead."export"
).
static final String IMPORT_EXT
"import.ext"
).
static final String MRU
"mru"
).
static final String QUIT
ActionFactory.QUIT.getId()
instead."quit"
).
static final String EDIT_START
"editStart"
).
static final String EDIT_END
"editEnd"
).
static final String UNDO
ActionFactory.UNDO.getId()
instead."undo"
).
static final String REDO
ActionFactory.REDO.getId()
instead."redo"
).
static final String UNDO_EXT
"undo.ext"
).
static final String CUT
ActionFactory.CUT.getId()
instead."cut"
).
static final String COPY
ActionFactory.COPY.getId()
instead."copy"
).
static final String PASTE
ActionFactory.PASTE.getId()
instead."paste"
).
static final String CUT_EXT
"cut.ext"
).
static final String DELETE
ActionFactory.DELETE.getId()
instead."delete"
).
static final String FIND
ActionFactory.FIND.getId()
instead."find"
).
static final String FIND_EXT
"find.ext"
).
static final String SELECT_ALL
ActionFactory.SELECT_ALL.getId()
instead."selectAll"
).
static final String BOOKMARK
org.eclipse.ui.ide.IDEActionFactory.BOOKMARK.getId()
instead."bookmark"
).
static final String ADD_TASK
org.eclipse.ui.ide.IDEActionFactory.ADD_TASK.getId()
instead."addTask"
).
static final String ADD_EXT
"add.ext"
).
static final String WB_START
"wbStart"
).
static final String WB_END
"wbEnd"
).
static final String BUILD_EXT
"build.ext"
).
static final String BUILD
org.eclipse.ui.ide.IDEActionFactory.BUILD.getId()
instead."build"
).
static final String REBUILD_ALL
org.eclipse.ui.ide.IDEActionFactory.REBUILD_ALL.getId()
instead."rebuildAll"
).
static final String TOOLBAR_FILE
static final String TOOLBAR_NAVIGATE
static final String TOOLBAR_HELP
static final String PIN_GROUP
static final String HISTORY_GROUP
static final String NEW_GROUP
static final String SAVE_GROUP
static final String BUILD_GROUP
static final String GROUP_MANAGING
"group.managing"
).
static final String GROUP_REORGANIZE
"group.reorganize"
).
static final String GROUP_ADD
"group.add"
).
static final String GROUP_FILE
"group.file"
).
static final String GROUP_SHOW_IN
"group.showIn"
).
static final String GROUP_APP
static final String GROUP_EDITOR
static final String GROUP_HELP
static final String VIEW_EXT
"additions"
).
static final String WINDOW_EXT
"additions"
).
static final String LAUNCH_EXT
"additions"
).
static final String REVERT
ActionFactory.REVERT.getId()
instead."revert"
).
static final String REFRESH
ActionFactory.REFRESH.getId()
instead."refresh"
).
static final String PROPERTIES
ActionFactory.PROPERTIES.getId()
instead."properties"
).
static final String MOVE
ActionFactory.MOVE.getId()
instead."move"
).
static final String RENAME
ActionFactory.RENAME.getId()
instead."rename"
).
static final String NAV_START
"navStart"
).
static final String NAV_END
"navEnd"
).
static final String OPEN_EXT
"open.ext"
).
static final String SHOW_EXT
"show.ext"
).
static final String GO_INTO
"goInto"
).
static final String GO_TO
"goTo"
).
static final String GO_TO_RESOURCE
"goToResource"
).
static final String SYNC_EDITOR
"syncEditor"
).
static final String SHOW_IN
"showIn"
).
ShowInAction
,
Constant Field Valuesstatic final String BACK
ActionFactory.BACK.getId()
instead."back"
).
static final String FORWARD
ActionFactory.FORWARD.getId()
instead."forward"
).
static final String UP
"up"
).
static final String NEXT
ActionFactory.NEXT.getId()
instead."next"
).
static final String PREVIOUS
ActionFactory.PREVIOUS.getId()
instead."previous"
).
static final String PROJ_START
"projStart"
).
static final String PROJ_END
"projEnd"
).
static final String BUILD_PROJECT
org.eclipse.ui.ide.IDEActionFactory.BUILD_PROJECT.getId()
instead."buildProject"
).
static final String REBUILD_PROJECT
org.eclipse.ui.ide.IDEActionFactory.REBUILD_PROJECT.getId()
instead."rebuildProject"
).
static final String OPEN_PROJECT
org.eclipse.ui.ide.IDEActionFactory.OPEN_PROJECT.getId()
instead."openProject"
).
static final String CLOSE_PROJECT
org.eclipse.ui.ide.IDEActionFactory.CLOSE_PROJECT.getId()
instead."closeProject"
).
static final String HELP_START
"helpStart"
).
static final String HELP_END
"helpEnd"
).
static final String ABOUT
ActionFactory.ABOUT.getId()
instead."about"
).
static final String[] GLOBAL_ACTIONS
|
Eclipse Platform Release 3.2 |
|||||||||
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, 2006. All rights reserved.