Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 20:23 Go to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 853
Registered: July 2009
Senior Member
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.

Re: Adding menu contributions to e4view's toolbar [message #1410961 is a reply to message #1408334] Fri, 22 August 2014 03:44 Go to previous message
John Bodkin is currently offline John BodkinFriend
Messages: 39
Registered: November 2011
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 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: Tue Aug 03 19:25:19 GMT 2021

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

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

Back to the top