Bug 78891 - [consistency] Tree fires expand/collapse too soon
Summary: [consistency] Tree fires expand/collapse too soon
Status: CLOSED WONTFIX
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: Grant Gayed CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: consistency
Depends on:
Blocks:
 
Reported: 2004-11-17 16:04 EST by Grant Gayed CLA
Modified: 2021-10-16 18:14 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Gayed CLA 2004-11-17 16:04:55 EST
- run the ControlExample, Tree tab
- listen for MouseDown, MouseUp, Expand and Collapse
- expand a tree node in the example Tree by clicking on its '+'

-> on gtk (seems correct) you'll get: MouseDown, Expand, MouseUp
-> everywhere else you'll get: Expand, MouseDown, MouseUp

A similar difference occurs when collapsing expanded tree nodes.
Comment 1 Steve Northover CLA 2004-11-22 18:31:53 EST
This happens because GTK doesn't expand or collapse the node until the mouse 
is released.

NOTE:  It is undefined whether this happens on mouse up or mouse down.  
However, it's interesting that the expand event comes before mouse down.  This 
happens because the expand event is processed right away by SWT rather than 
being deferred to the event loop.  Need to consider only deferring mouse 
events for Canvases.
Comment 2 Steve Northover CLA 2005-01-19 19:46:04 EST
GG to prioritize.
Comment 3 Randy Hudson CLA 2007-06-07 11:02:23 EDT
I'm wondering about a way to consume the expand/collapse of a treeitem. Is this possible at all, given the differences between platforms and when the expand/collapse occurs relative to mouse/key events?
Comment 4 Grant Gayed CLA 2007-06-07 16:25:18 EDT
The events cannot be consumed currently.
Comment 5 Eclipse Webmaster CLA 2019-09-06 15:38:33 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.
Comment 6 Eclipse Genie CLA 2021-10-16 18:14:03 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.