Bug 104359 - [hovering] Wrong native hover on code assist popup
Summary: [hovering] Wrong native hover on code assist popup
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Steve Northover CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-19 11:25 EDT by John Arthorne CLA
Modified: 2019-09-06 16:07 EDT (History)
3 users (show)

See Also:


Attachments
Screen shot (23.18 KB, image/jpeg)
2005-07-19 11:25 EDT, John Arthorne CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2005-07-19 11:25:35 EDT
Build: 3.1 final.

1) Start with a simple class:

Class Info {
  /**
   * Simple name.
   */
  public String getName() {return null;}
  /**
    * Attributes.
    */
   public boolean getAttribute(int i) {return false;}
}

2) Create another code snippet in a java class with a reference to class Info:

  Info info = new Info();
  info.get

3) Invoke code assist at the end of this snippet.
4) Shrink the code assist box so that the "getAttributes()" completion doesn't
fit in the window.
5) However the mouse over the getAttribute() completion, so that the yellow
popup shows the entire completion
6) Type "Name"

-> There is now only one possible completion: getName().  However, the yellow
popup hover still says getAttribute(). The javadoc popup correctly shows the
javadoc for getName().

See the attached screenshot to see what I mean.
Comment 1 John Arthorne CLA 2005-07-19 11:25:50 EDT
Created attachment 24979 [details]
Screen shot
Comment 2 Tom Hofmann CLA 2005-07-19 12:26:30 EDT
The yellow tooltip (not the javadoc in the additional info popup) is provided by
the OS/WS. I believe that this might be a SWT.VIRTUAL side-effect, since it
appears our model is correct (since the javadoc popup is correct).
Comment 3 Dani Megert CLA 2005-07-20 03:16:02 EDT
Tom, please investigate
Comment 4 Tom Hofmann CLA 2005-07-20 03:31:01 EDT
Linux/GTK does not show such tooltips for partially clipped items.

However, since the popup, displayed item (when no tooltip shown) and the
insertion are correct, I assume that this is a problem with the table.

Moving to SWT for comments.
Comment 5 Steve Northover CLA 2005-08-22 16:26:15 EDT
I had a quick go at fixing this one.  There doesn't seem to be a way to get 
Windows to ask for the text again.  I tried reaching in and getting the 
tooltip handle from the Table and talking to it directly.

Happens in the Tree as well.  See bug 105393.
Comment 6 Eclipse Webmaster CLA 2019-09-06 16:07:04 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.