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

Bug 304474

Summary: Scrolling through tooltip no data is shown in lower panel
Product: [Eclipse Project] JDT Reporter: Timothy Mowlem <tmowlem>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r
Version: 3.5   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard: stalebug
Attachments:
Description Flags
Screenshot of issue none

Description Timothy Mowlem CLA 2010-03-03 04:13:20 EST
Build Identifier: 3.6M5 I20100129-1300

In debug mode if the user hovers a mouse over a variable its value appears in a yellow tooltip window. The window has two panes, upper shows the variable, e.g. a collection, lower part shows its value.

If you select the collection root line, first line in the top part of the tooltip window, and move down the list by using the Down Arrow key then the lower pane shows the value of entry item in the collection.

But when a value scrolls into view (i.e. a value that was initially not visible) then its value is not shown in the lower pane.

Reproducible: Always

Steps to Reproduce:
1. In debug mode select a collection variable, e.g. a hashmap
2. Hover the mouse over the variable in the editor (optionally choose menuitem Run->Select (or Cmd+Shft+I) or just hover
3. The yellow tooltip like window appears containing the variable value
4. Select the root entry
5. Use the Down Arrow on the keyboard to walk down the list
6. When an item not visible is scrolled into view no value is shown in lower pane
Comment 1 Timothy Mowlem CLA 2010-03-03 04:15:54 EST
Created attachment 160750 [details]
Screenshot of issue

The value IS displayed if you then scroll to the following line then back up a line
Comment 2 Markus Keller CLA 2010-03-03 10:26:11 EST
Interesting. I can reproduce in I20100302-0800 on WinXP with the snippet below, but *only* when the tree's height is an exact multiple of the item height (i.e. the last visible item is fully visible). This is the case out of the box when I use Ctrl+Shift+I on 'hashMap'.

I suspect this is a problem of the virtual tree (e.g. an element is selected before its TreeItem has been completely created and initialized).


import java.util.HashMap;

public class Try {
    public static void main(String[] args) {
        HashMap<String, Integer> hashMap = new HashMap<String, Integer>();
        for (int i = 0; i < 50; i++) {
            hashMap.put(String.valueOf('a' + i), i);
        }
        System.out.println(hashMap); // breakpoint here
    }
}
Comment 3 Eclipse Genie CLA 2020-03-24 11:43:45 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. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. 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.

--
The automated Eclipse Genie.