Project: Eclipse_Platform_UI
Bug 219536 [Contributions] [Doc] update API docs re IMenuService.populateContributionManager doesn't populate child(nested) contribution items on form toolbar
Reported: 2008-02-19 21:47:00 | Status: verified fixed

Build ID: M20071023-1652 Steps To Reproduce: 1.Create RCP plugin (possibly any 3.3 plugin) 2.Create Editor (extends EditorPart) 3.Put there org.eclipse.ui.forms.widgets.Form 4.Make org.eclipse.ui.menu 5.Add to org.eclipse.ui.menu menuContribution with locationURI: toolbar:anything 6.Add on this menuContribution "toolbar" item 7.Add on the toolbar the commands (All commands are existed and all icons, labels etc are OK) 7.in your Editor's createPartControl do populating: IMenuService ms = (IMenuService) this.getSite().getService( IMenuService.class); ms.populateContributionManager((ToolBarManager)form.getToolBarManager(), "toolbar:anything"); 8.Run and see that actually only toolbar item was added is useless container toolbar item. More information: This issue can be workarounded by creating the toolbar buttons directly on the menuContribution avoiding using intermediate toolbar parent item.

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/menus/IMenuService.java