Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 354178 - [hovering] Editor hover requires two clicks to expand second level nodes
Summary: [hovering] Editor hover requires two clicks to expand second level nodes
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.7   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-08 15:36 EDT by Patrick Chuong CLA
Modified: 2011-08-09 09:45 EDT (History)
2 users (show)

See Also:


Attachments
Editor tooltip screenshot (40.89 KB, image/png)
2011-08-08 16:30 EDT, Patrick Chuong CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Chuong CLA 2011-08-08 15:36:43 EDT
When I hover over a variable in the editor that has 2 or more levels, it requires two clicks to expand the second level of the tree node.

It looks like the first click put the tooltip window into focus, then the second click expands the node. Note that there are flickers when clicking on the tooltip window.
Comment 1 Remy Suen CLA 2011-08-08 15:59:33 EDT
Could you attach a screenshot?
Comment 2 Patrick Chuong CLA 2011-08-08 16:08:14 EDT
A screenshot won't help, it would show the node not expanded for the first click. 

You can try this out on JDT or any debugger, I see it on CDT and JDT. On JDT, debugging eclipse, suspend the "main" thread. Select the PlatformUI.createAndRunWorkbench frame and hover your moue over advisor parameter. Then quickly click on activityHelper in the tooltip before the tooltip has focus i.e border. You will see the node is expanded and then collapse again.
Comment 3 Remy Suen CLA 2011-08-08 16:12:45 EDT
(In reply to comment #2)
> A screenshot won't help, it would show the node not expanded for the first
> click.

The reason I asked for a screenshot is because I don't know what tooltip/popup you are referring to.

> You can try this out on JDT or any debugger, I see it on CDT and JDT. On JDT,
> debugging eclipse, suspend the "main" thread. Select the
> PlatformUI.createAndRunWorkbench frame and hover your moue over advisor
> parameter. Then quickly click on activityHelper in the tooltip before the
> tooltip has focus i.e border. You will see the node is expanded and then
> collapse again.

It sounds to me like something related to text hovers.
Comment 4 Patrick Chuong CLA 2011-08-08 16:30:40 EDT
Created attachment 201104 [details]
Editor tooltip screenshot
Comment 5 Dani Megert CLA 2011-08-09 02:41:12 EDT
The hover is enriched depending on the 'When mouse moved into hover' Text Editor preference. If it is on 'Enrich on click' then the first click only enriches the hover. If it enriches after a delay then it depends how fast you click.

If you want the hover to be enriched immediately and the first click expanding the nodes then you can set the preference accordingly.
Comment 6 Patrick Chuong CLA 2011-08-09 09:45:11 EDT
Dani,

I changed the preferrnce to 'Enrich on click', however when I click on a node to expand its children, the node expanded for a fraction of a second and then collapsed again. So, it still requires two clicks. Can the enrich and expand done in one click, rather then two clicks? Our customer is frustrated for having to click twice to expand a structure or an array in the hover window.

With the preference set to 'Enrich Immediately' causes flickers when the mouse enters the hover window. For this case, can the flickers be eliminated?