Jump to: navigation, search

Difference between revisions of "Eclipse4/RCP/Modeled UI/Best Practices"

< Eclipse4‎ | RCP‎ | Modeled UI
(New page: == 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 ...)
 
(Added Wim Jongman's discoveries)
 
(One intermediate revision by the same user not shown)
Line 20: Line 20:
 
** Preferences: org.eclipse.ui.window.preferences
 
** Preferences: org.eclipse.ui.window.preferences
 
** Exit: org.eclipse.ui.file.exit
 
** Exit: org.eclipse.ui.file.exit
 +
* Menu identifiers:
 +
** Top-level menu bar: menu:org.eclipse.ui.main.menu
 +
** 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

Latest revision as of 14:07, 26 June 2012

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
    • 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