Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 20226

Summary: [Coolbar] [Help] No F1 help for Toolbar items
Product: [Eclipse Project] Platform Reporter: Adam Schlegel <Adam_Schlegel>
Component: UIAssignee: Platform UI Triaged <platform-ui-triaged>
Status: RESOLVED WONTFIX QA Contact: Eric Moffatt <emoffatt>
Severity: enhancement    
Priority: P4 CC: daniel_megert, jared_burns, nobody, ob1.eclipse, pwebster, remy.suen, rolarenfan, sdavids, Tod_Creasey
Version: 2.0Keywords: accessibility
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Bug Depends on: 25750    
Bug Blocks:    

Description Adam Schlegel CLA 2002-06-13 13:06:29 EDT
Build F3

It is currently not possible to define F1 help on a toolbar item. This means 
that F1 help is not available for the coolbar buttons, perspectives and fast 
views on the shortcut bar, and the view toolbars.

Now, when the user has keyboard focus on a toolbar item and presses F1, the 
infopop for the Workbench Window will be displayed.
Comment 1 Nick Edgar CLA 2002-11-05 14:34:13 EST
Investigate.
Comment 2 Nick Edgar CLA 2002-11-05 14:36:32 EST
ActionContributionItem.fill(ToolBar, int) does not hook a help listener on the 
ToolItem.
Comment 3 Lynne Kues CLA 2002-11-05 16:32:39 EST
Currently addHelpListener is not API for ToolItem.  Not sure why - asked SN and 
VI about it.
Comment 4 Lynne Kues CLA 2002-11-05 17:37:19 EST
Opened SWT bug report for ToolItem.
Comment 5 Lynne Kues CLA 2002-12-18 10:50:42 EST
Lowering priority.  Waiting on SWT support for this, but the SWT priority is 
low at this point.
Comment 6 Nick Edgar CLA 2003-02-07 12:47:26 EST
Defer.
Comment 7 Tod Creasey CLA 2006-06-22 08:34:25 EDT
There are currently no plans to work on this feature
Comment 8 Sebastian Davids CLA 2006-06-23 01:34:03 EDT
the bug mentioned in comment 4 would be Bug 25750
Comment 9 Nobody - feel free to take it CLA 2009-06-17 14:29:38 EDT
So is there a workaround for this problem? The extension point has a helpContextId defined. If this is never going to work, shouldn't this be removed from the extension point?

Comment 10 Dani Megert CLA 2010-10-22 05:25:00 EDT
*** Bug 152330 has been marked as a duplicate of this bug. ***
Comment 11 Dani Megert CLA 2010-10-22 05:26:00 EDT
We should support this since we also allow help on (context) menu items.
Comment 12 Oleg Besedin CLA 2011-01-19 15:09:25 EST
(In reply to comment #11)
> We should support this since we also allow help on (context) menu items.

Action-based context menus can specify context help either programmatically:

 IWorkbenchHelpSystem#setHelp(IAction action, String contextId), or

in plugin.xml using "helpContextId" attribute.

For the toolbars, the SWT event we are getting has "Shell" as a event source rather then the active toolbar element. The required underlying SWT enhancement request ( bug 25750 ) is marked as "won't fix" so not much can be done in the Platform/UI space.