Community
Participate
Working Groups
Created attachment 226089 [details] sample project showing the bug I tried to have text and an icon for a toolbar entry by setting mode to FORCE_TEXT within the menuContribution. Seems the flag is ignored by the framework
What build are you running against? PW
OK, org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem supports the tag "FORCE_TEXT" but org.eclipse.ui.internal.menus.MenuAdditionCacheEntry.createToolBarCommandAddition(IConfigurationElement) doesn't set the tag when parsing the extension command/@mode PW
(In reply to comment #1) > What build are you running against? Cannot look up the exact build ID before monday, but its Juno SR1. I originally experienced this when trying to update contributions programmatically (through the IElementUpdater interface). Hope a fix will take care of the programmatic approach too.
I think that this bug is really important. It is one of those bugs which don't let many RCP developers to migrate from Eclipse 3.x to 4.x because it breaks UI and there are no workarounds. Moreover it is trivial and very easy to fix. Sorry, I can't provide well-formed patch, I'm RCP developer and don't have Eclipse platform dev environment. In MenuAdditionCacheEntry.createToolBarCommandAddition just add following code at line 503: if (MenuHelper.getMode(commandAddition) == CommandContributionItem.MODE_FORCE_TEXT) { item.getTags().add("FORCE_TEXT"); item.setLabel(MenuHelper.getLabel(commandAddition)); } I've patched my local org.eclipse.ui.workbench plugin and it solved the problem. I hope this fix will be included at least in Eclipse 4.4.
(In reply to Serge Rider from comment #4) > I think that this bug is really important. It is one of those bugs which > don't let many RCP developers to migrate from Eclipse 3.x to 4.x because it > breaks UI and there are no workarounds. See https://wiki.eclipse.org/Platform_UI/How_to_Contribute on how to set up the eclipse dev env. PW
Pushed to master for review: https://git.eclipse.org/r/#/c/25271/
Released as http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=e1a872d4dcf51b4bebc10ca25c20aec1348e253d Thanks everybody. PW
In 4.4.0.I20140428-2000