Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Menu contributions to e4 IDE, insertion ID's fixed?
Menu contributions to e4 IDE, insertion ID's fixed? [message #1037138] Tue, 09 April 2013 03:51
Christophe Bouhier is currently offline Christophe Bouhier
Messages: 895
Registered: July 2009
Senior Member
Hello there,

I am trying to create an application which can both work on an RCP and
as an IDE plugin for 4.x workbench. One of the challenges is
contribution to menuss and toolbars. In 3.x contribution 'hook' points
as defined IWorkbenchActionConstants would be used to contribute a menu
entry. For example the code below would contribute to the main
application menu by calling insertAfter("additions").

public void contributeToMenu(IMenuManager menuManager) {
super.contributeToMenu(menuManager);

IMenuManager submenuManager = new
MenuManager(EXTLibraryEditorPlugin.INSTANCE.getString("_UI_EXTLibraryEditor_menu"),
"org.eclipse.emf.examples.extlibraryMenuID"); //$NON-NLS-1$ //$NON-NLS-2$
menuManager.insertAfter("additions", submenuManager); //$NON-NLS-1$


In e4, ID's of menu entries are the reference points for insertion,
which fragements or processors can use to contribute at a certain position.

My question now is, for i.e. the 4.3 release of the IDE. Is there an
Application.e4xmi with referenceable ID's? ...or is the 'old' 3.x menu
structure created with the compatibility layer? How do I deal with this
challenge?

Thank You,
Christophe
p.s. In case some of the examples look familiar, I am currently creating
an EMF generated editor for e4.
Previous Topic:ECommandService injection Exception when requested in a Processor
Next Topic:Adding model contributions from a plugin (fragment.e4xmi) without clearing workspace
Goto Forum:
  


Current Time: Mon Jul 28 02:15:54 EDT 2014

Powered by FUDForum. Page generated in 0.10735 seconds