|Get lazy main menu items [message #560165]
||Tue, 21 September 2010 08:17
| Roman Ilin
Registered: September 2010
in my application I have NavigationView with tree component filled by content of 'Workplace' part of main menu.
I used Eclipse RCP 3.2 and that worked just fine.
I get menu like this
MenuItem menuItem = getSite().getShell().getMenuBar().getItem(1);
and with small workaround set it as input for tree component.
Now I try to do the same thing in Helios 3.6 and my navigator tree stays empty because menu items aren't initialized in main menu until first call by user.
Can I change this behavior and load all menu items on application start?
If not then I should probably build this menu part dynamically ContributionItem?
Do you see another options?
Powered by FUDForum
. Page generated in 0.01493 seconds