Jump to: navigation, search

Eclipse4/RCP/Modeled UI/Best Practices

< Eclipse4‎ | RCP‎ | Modeled UI
Revision as of 16:08, 20 February 2012 by Bsd.mt.ca (Talk | contribs)

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: org.eclipse.ui.file.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: org.eclipse.ui.help.aboutAction
    • Preferences: org.eclipse.ui.window.preferences
    • Exit: org.eclipse.ui.file.exit
  • Menu identifiers:
    • Top-level menu bar: menu:org.eclipse.ui.main.menu
  • ToolBar identifiers:
    • Top-level ToolBar: toolbar:org.eclipse.ui.main.toolbar