Bug 432927 - SWT Tree with full row selection behaves wrong only on Windows
Summary: SWT Tree with full row selection behaves wrong only on Windows
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.3   Edit
Hardware: PC Windows 7
: P3 normal with 4 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2014-04-16 10:26 EDT by Mattias Joëlson CLA
Modified: 2021-08-08 00:40 EDT (History)
7 users (show)

See Also:


Attachments
A reproducer of the double click problem (5.10 KB, application/octet-stream)
2014-04-16 10:26 EDT, Mattias Joëlson CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mattias Joëlson CLA 2014-04-16 10:26:37 EDT
Created attachment 242057 [details]
A reproducer of the double click problem

Having created a Tree with SWT.FULL_SELECTION and then adding a double click listener on the viewer I experience that double clicking outside of the actual label is not trigged. Or rather, some other handler cuts in between and changes expansion state before my own handler negates it.

This only happens on Windows 7 and 8, not Windows Vista nor Linux. That leads me to think that this is a Windows platform dependent bug.

I am attaching a reproducer that includes this problem description:

"This program demonstrates the different behaviours for Tree when using the style SWT.FULL_SELECTION or not on Windows. The double click handler that is added to the tree is written to change the expansion state of the first selected element.

Whole row selection is enabled in the first tree. If you double click on the label it behaves as intended, but if you double click outside the label some other handler expands the node before it is closed again by the provided double click handler.

In the second tree the user must double click on the label and here everything works as intended.

Note that this is only a problem on Windows 7 and 8. On other OS double clicking inside or outside of the label works in the first tree."
Comment 1 Timo Kinnunen CLA 2014-04-17 04:37:41 EDT
There's other related bugs too which seem quite telling. Double-clicking items on the second level or lower levels in the upper tree sometimes briefly shows the tree expanding. The folder contents are read too. Double-clicking the arrows itself on the second or lower levels in the first tree sometimes pushes to lower tree completely off-screen or makes it shorter. These feel like a race-condition, which should rule out a change in Windows itself as a culprit, because the event-loop is single-threaded.
Comment 2 Riccardo Nimser CLA 2016-05-16 14:23:51 EDT
I just got the same issue with SWT 4.5.2 and Windows 10. With SWT.FULL_SELECTION a node is expanded automatically if you double click on the row outside of the image or the label from the node.
Comment 3 Eric Williams CLA 2019-08-16 15:46:36 EDT
Alexandr, is this something you see in your product?
Comment 4 Alexandr Miloslavskiy CLA 2019-08-17 05:59:16 EDT
Actually, yes, we have this problem. Never noticed it before you asked.
Comment 5 Eric Williams CLA 2019-08-18 12:39:02 EDT
(In reply to Alexandr Miloslavskiy from comment #4)
> Actually, yes, we have this problem. Never noticed it before you asked.

Okay, we see it in Java Mission Control (on Windows) as well. Is this something you'd be interested in looking at for 4.14?
Comment 6 Alexandr Miloslavskiy CLA 2019-08-18 13:22:30 EDT
Not sure. I already have quite a backlog of bugs to fix :)
Comment 7 Eclipse Genie CLA 2021-08-08 00:40:18 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.