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

    Fields
    Modifier and Type
    Field
    Description
    static 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.0
    static 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 actions
    static 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 contributions
    static 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 instead
    static 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.