Skip to main content

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 07:51
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
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) {

IMenuManager submenuManager = new
"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

Thank You,
p.s. In case some of the examples look familiar, I am currently creating
an EMF generated editor for e4.
Previous Topic:Adding model contributions from a plugin (fragment.e4xmi) without clearing workspace
Next Topic:Removing Dynamic Menu Contributions
Goto Forum:

Current Time: Fri May 25 16:49:57 GMT 2018

Powered by FUDForum. Page generated in 0.01418 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top