Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 25750 - ToolItem needs addHelpListener API
Summary: ToolItem needs addHelpListener API
Status: RESOLVED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 20226
  Show dependency tree
 
Reported: 2002-11-05 17:36 EST by Lynne Kues CLA
Modified: 2011-01-20 01:30 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lynne Kues CLA 2002-11-05 17:36:17 EST
Build 20021105

F1 help should work for tool items.  Currently, there is no API to add a help 
listener for a ToolItem.  There is API for adding a help listener to a 
MenuItem.
Comment 1 Lynne Kues CLA 2002-11-06 10:00:06 EST
From SN:

It used to be (before accessibility) that a tool item could not get focus so 
how would I know which tool item to give help on?  Now, they will take focus 
but only through the keyboard.  So, how do I know which item to give help on?  
Is it the one that the mouse is over?

YES, I think F1 should be activated for whatever tool item is "hot" (i.e., 
puffed out image displayed).  Currently this can happen when the mouse is over 
a tool item or when you tab to a tool item.
Comment 2 Lynne Kues CLA 2002-11-06 10:04:20 EST
Not sure if this matters or not, but the capability needs to work for ToolItems 
within a CoolItem.
Comment 3 Steve Northover CLA 2002-11-06 10:56:14 EST
Ok, but this is low priority.
Comment 4 Sebastian Davids CLA 2004-10-24 06:46:24 EDT
any chance to see this in 3.1?
Comment 5 Steve Northover CLA 2004-10-27 11:58:58 EDT
Ok, I hacked in something but failed again in the area of focus.  When another 
widget in the shell has focus but the tool item is hot, where does the F1 go?  
The user probably expects it to go to the hot item but that isn't the way that 
help callbacks work in the operating system.  So, every time F1 was pressed, 
we would need to scan the widget hierarchy for a tool item that was hot and 
deliver the help callback to that widget rather than the focus control (which 
is where the operating system is delivering the callback).
Comment 6 Steve Northover CLA 2008-05-29 16:44:01 EDT
We won't do this.  ToolItems don't get focus and no native platform does this.