Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Add menu to scrolled Form Toolbar
Add menu to scrolled Form Toolbar [message #1739476] Tue, 02 August 2016 09:20
Maria Schneller is currently offline Maria SchnellerFriend
Messages: 3
Registered: May 2016
Junior Member
Hello everybody,

I want to do a seemingly simple thing: I have a scrolled form and I want to fill the header's toolbar with a Menu.
The contents should be the same as the ones I already succesfully added to the tree I have in another part of my application. So I already have handlers and co. defined in my *.e4xmi

Thing is - scrolledForm.getToolBarManager() returns an IToolBarManager in which I only can put either Actions or IContributionItems - both are from JFace and deprecated in favor of the new Command Framework.
All I could find on the CommandFramework is information that is definitely NOT done in an e4 environment.
To make a looong story short: I keep hitting walls, running into NullPointerExceptions (because at some point something refers to something other deep in org.eclipse.ui that is null) and by now I'm so confused that I have no idea anymore which side is up.

Has anyone out there ever tried this before and maybe got some pointers?

Thank you so, so much
Previous Topic:Neon: perspective from fragment.e4xmi not loaded
Next Topic:Remove E4 menu item programmatically
Goto Forum:

Current Time: Tue Aug 16 23:24:16 GMT 2022

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

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

Back to the top