Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: for the plan.

Jump to: navigation, search

Eclipse4/RCP/Modeled UI/Best Practices

< Eclipse4‎ | RCP‎ | Modeled UI

Use Eclipse 3.x Element Identifiers

We recommend that, where possible, you use elementIds that correspond to equivalent concepts in Eclipse 3.x. Certain Eclipse 4 addons will make use of these identifiers, such as the Eclipse 4 UI Cocoa Support (found in bundle org.eclipse.e4.ui.workbench.renderers.swt.cocoa).

The following list of known identifiers is not meant to be exhaustive:

  • Commands identifiers:
    • Save:
    • Save All: org.eclipse.ui.file.saveAll
    • Undo: org.eclipse.ui.edit.undo
    • Redo: org.eclipse.ui.edit.redo
    • Cut: org.eclipse.ui.edit.cut
    • Copy: org.eclipse.ui.edit.copy
    • Paste: org.eclipse.ui.edit.paste
    • Delete: org.eclipse.ui.edit.delete
    • Import: org.eclipse.ui.file.import
    • Export: org.eclipse.ui.file.export
    • Select All: org.eclipse.ui.edit.selectAll
    • About:
    • Preferences: org.eclipse.ui.window.preferences
    • Exit: org.eclipse.ui.file.exit
  • Menu identifiers:
    • Top-level menu bar:
    • All popup menus: popup:org.eclipse.ui.popup.any
  • ToolBar identifiers
    • Top-level ToolBar: toolbar:org.eclipse.ui.main.toolbar
    • Top-left trim area (main toolbar area): toolbar:org.eclipse.ui.trim.command1
    • Top-right trim area (perspective switcher area): toolbar:org.eclipse.ui.trim.command2 // the top right trim (perspective switcher area)
    • Left vertical trim: toolbar:org.eclipse.ui.trim.vertical1
    • Right vertical trim: toolbar:org.eclipse.ui.trim.vertical2
    • Status-line trim: toolbar:org.eclipse.ui.trim.status

Back to the top