Community
Participate
Working Groups
We are currently having problems with CompoundContributionItems when our Jubula Juno M4 feature runs in 4.2 context (see bug 367076). We are intensively using dynamic menu contributions in the main toolbar as well as in view toolbars. The button for the dynamic menu itself gets shown but it has neither a dropdown arrow nor a dropdown menu. The following code works fine in 3.7.x The code for one of our CompoundContributionItems can be found at: http://git.eclipse.org/c/jubula/org.eclipse.jubula.core.git/tree/org.eclipse.jubula.client.ui.rcp/src/org/eclipse/jubula/client/ui/rcp/contributionitems/StartAutContributionItem.java#n39 And the dynamic declarative menu extension for the main toolbar is here: http://git.eclipse.org/c/jubula/org.eclipse.jubula.core.git/tree/org.eclipse.jubula.client.ui.rcp/plugin.xml#n1410
Dynamic items are currently getting through. org.eclipse.ui.internal.menus.MenuAdditionCacheEntry.createMenuCommandAddition(IConfigurationElement) needs to correctly generate a tool item with a menu with the correct ID so it can be shown. org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.getMenu(MMenu, ToolItem) needs to go through the MenuManagerRenderer for standard MMenus. PW
Created attachment 209575 [details] Provide datafilling of dropdown tool items v01 Create the MMenu required, and call createGui(*) at the appropriate time. PW
*** Bug 367823 has been marked as a duplicate of this bug. ***
Fixed by http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=e9b35b6cd9b594d6962700c736060ac4a2d9c8a7 PW
*** Bug 356309 has been marked as a duplicate of this bug. ***
In I20120123-2200 PW