Bug 250992 - [JFace] ToolTip stops displaying when shell is created on one control but disposed on another.
Summary: [JFace] ToolTip stops displaying when shell is created on one control but dis...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-15 14:45 EDT by Sarah CLA
Modified: 2019-09-06 15:30 EDT (History)
3 users (show)

See Also:


Attachments
Snippet displaying behavior (2.10 KB, text/x-java)
2008-10-15 14:45 EDT, Sarah CLA
no flags Details
Updated Snippet (2.05 KB, text/x-java)
2008-10-15 16:12 EDT, Sarah CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sarah CLA 2008-10-15 14:45:35 EDT
Created attachment 115177 [details]
Snippet displaying behavior

We've created a composite with multiple labels, each with its own ToolTip with a ToolTip.NO_RECREATE style.  If the tool tip is displaying for one label and the mouse is quickly moved from that label to the neighboring label, when you hover over the original label the tool tip may not display.  This doesn't happen every time you move quickly from one label to the other, but once it occurs the tool tip will not display for the first label again.

It looks like the ToolTip class adds listeners to each Label for MouseMove and MouseExit events and we're hitting a case where the MouseMove for the second label is sometimes handled before the MouseExit for the first label.  In the handling of the MouseMove event, the tool tip shell is disposed.  When the MouseExit is then handled for the first label, no tool tip shell is found, so the currentArea variable that needs to be reset to null is not being reset, causing the shouldCreateToolTip() method to always return false from this point, so the label will not display a tool tip again.

Snippet is attached using the DefaultToolTip.
Comment 1 Sarah CLA 2008-10-15 16:12:14 EDT
Created attachment 115190 [details]
Updated Snippet
Comment 2 Sarah CLA 2008-10-15 16:25:00 EDT
When trying to recreate it helps to hover on the far right of the first label and move the cursor as quickly as you can to the second label.
Comment 3 Paul Webster CLA 2008-10-21 09:40:17 EDT
They're talking about JFace tooltips, AFAICT
PW
Comment 4 Frank Rydzewski CLA 2008-10-21 11:27:58 EDT
org.eclipse.jface.window.DefaultToolTip
Comment 5 Susan McCourt CLA 2009-07-09 18:20:00 EDT
As per http://wiki.eclipse.org/Platform_UI/Bug_Triage_Change_2009
Comment 6 Eclipse Webmaster CLA 2019-09-06 15:30:48 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.