Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » Adding menu contributions to e4view's toolbar
Adding menu contributions to e4view's toolbar [message #1408334] Thu, 14 August 2014 16:23 Go to next message
Eclipse UserFriend
Adding menu contributions (using the menus extension point) to an e4view's toolbar does not seem to work. If I change the view to be contributed via the old 3.x extension point, the menu contributions are added. Do I miss something? Is this a (known) bug?

My target platform is set to the active running platform which is Luna.

Thanks!
Re: Adding menu contributions to e4view's toolbar [message #1410961 is a reply to message #1408334] Thu, 21 August 2014 23:44 Go to previous message
Eclipse UserFriend
It is possible to contribute to an e4 parts toolbar from the eclipse 3.x menu extension point. You need to have a toolbar defined and id'd in your fragment or app e4xmi for the e4 part and then use that id in the 3.x menu extension.

In Eclipse 3.x a view's toolbar id is identical to the id of the view. In e4 the id of the part and the id of the toolbar of the part are usually different.

This is assuming you're creating an app with compatibility mode and you're mixing 3.x and e4 into one app.

I used the SimpleRCPApp example provided here http://www.vogella.com/tutorials/Eclipse4MigrationGuide/article.html to prove the theory.
Previous Topic:My editor is intercepting key events from the Quick Access text field
Next Topic:hidePart during shutdown leaves something behind
Goto Forum:
  


Current Time: Thu Jul 03 20:39:38 EDT 2025

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

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

Back to the top