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

Bug 337269

Summary: ToolTip still visible after calling dispose
Product: [Eclipse Project] Platform Reporter: Steffen Pingel <steffen.pingel>
Component: SWTAssignee: Arun Thondapu <arunkumar.thondapu>
Status: RESOLVED FIXED QA Contact: Bogdan Gheorghe <gheorghe>
Severity: normal    
Priority: P3 CC: gheorghe, remy.suen, stefanescu.a
Version: 3.6.2   
Target Milestone: 3.8 M4   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on:    
Bug Blocks: 175655    
Attachments:
Description Flags
ToolTipTest.java
none
mylyn/context/zip
none
Proposed patch
none
Revised patch none

Description Steffen Pingel CLA 2011-02-15 20:05:53 EST
If I create a tooltip on Gtk and then dispose it it is still visible if I hover anywhere over the Shell. I have attached an example that demonstrates that.

If I use the SWT.Ballon style the tooltip does not re-appear after calling dispose().
Comment 1 Steffen Pingel CLA 2011-02-15 20:06:47 EST
Created attachment 189066 [details]
ToolTipTest.java
Comment 2 Steffen Pingel CLA 2011-02-15 20:06:49 EST
Created attachment 189067 [details]
mylyn/context/zip
Comment 3 Bogdan Gheorghe CLA 2011-02-22 14:07:26 EST
Arun, take a look at this please.
Comment 4 Arun Thondapu CLA 2011-03-02 09:55:47 EST
Created attachment 190151 [details]
Proposed patch

Please review the proposed patch. Thanks!
Comment 5 Arun Thondapu CLA 2011-03-21 08:15:07 EDT
Created attachment 191605 [details]
Revised patch

Revised the patch to ensure that calling dispose directly without calling setVisible first also works as expected.

Please review the revised patch. Thanks!
Comment 6 Adrian Stefanescu CLA 2011-06-22 05:28:37 EDT
this still occurs in eclipse 3.7 m4
Comment 7 Bogdan Gheorghe CLA 2011-11-14 10:48:34 EST
Patch released.

Fixed in master > 20111114