Project: Eclipse_Platform_UI
Bug 202893 [Contributions] F1 key does not work when context id set in org.eclipse.ui.menu
Reported: 2007-09-11 04:57:36 | Status: verified fixed

I have converted my rcp to use the new menu/command system. I have created a context id to test adding context help to the menus. I know the context works as I have added it to a TrayDialog to test that PlatformUI.getWorkbench().getHelpSystem().setHelp(getShell(), "com.mitel.swb.help.add"); And pressing F1 or the help icon open the help in the tray as expected. I then tried adding it to a menu item, but highlighting it and pressing F1 does nothing. What have I missed. <extension point="org.eclipse.ui.commands"> <command> defaultHandler="com.mitel.swb.handlers.RegisterWorkbench" helpContextId="com.mitel.swb.help.add" id="com.mitel.swb.commands.registrationCommand" name="Register Workbench"> </command> <extension point="org.eclipse.ui.menus"> <menuContribution locationURI="menu:org.eclipse.ui.main.menu"> <menu id="menuFile" label="File" mnemonic="F"> <command commandId="com.mitel.swb.commands.registrationCommand" helpContextId="com.mitel.swb.help.add" id="registrationCommand" label="Register Workbench"> </command> the context is in the com.mitel.swb.help plugin <contexts> <context id="add" title="add"> <description> Please write a description for this help context. </description> </context> </contexts>

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