Add menu to scrolled Form Toolbar [message #1739476] |
Tue, 02 August 2016 09:20 |
Maria Schneller 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
|
|
|
Powered by
FUDForum. Page generated in 0.01861 seconds