Project: Eclipse_Platform_UI
Bug 221662 [Contributions] Extension point org.eclipse.ui.menus: sub menu contribution does not have icon even if specified
Reported: 2008-03-06 09:38:31 | Status: verified fixed

If using org.eclipse.ui.menus for contributing an additional menu to the Eclispe main menu and this contribution contains another sub menu, the sub menu does not have the specified icon. ... <extension point="org.eclipse.ui.menus"> <menuContribution locationURI="menu:org.eclipse.ui.main.menu?after=project"> <menu id="my.main.menu" label="%my.main.menu.label"> <separator name="groupA" visible="true"/> <separator name="groupB" visible="true"/> ... <separator name="groupX" visible="true"/> <separator name="additionsGroup" visible="true"/> </menu> </menuContribution> ... <menuContribution locationURI="menu:my.main.menu?after=groupB"> <menu icon="icons/elcl16/system_mode.gif" id="my.subMenu" label="%MySubmenu.label" tooltip="%MySubmenu.tooltip"> <dynamic class="x.y.z.MySubmenuContributionItem" id="my.SubmenuContribution"> </dynamic> </menu> </menuContribution> ... The icon is not painted in front of the menu but should.

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