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

Bug 111534

Summary: [DND] Optionally supress Tree selection event on drag start
Product: [Eclipse Project] Platform Reporter: Francis Upton IV <francisu>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3 CC: billy.biggs, duongn, ericwill, snorthov, veronika_irvine
Version: 3.1.1Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description Francis Upton IV CLA 2005-10-04 17:32:55 EDT
In my application, when the user initiates a drag from a Tree (I'm using a JFace
TreeViewer), I would like this to not select the TreeItem.

I prefer not to try to deal with the low-level mouse events for detecting the
drag, since this deals with platform-specific mechanisms.

However, when I tried listening to the SWT.Selection, SWT.DragDetect, and the
TreeViewer selection and DragStart events, the selection events always appear
first, so I'm not able to determine that the selection was caused by the start
of a drag (so I can ignore/reverse the selection).
Comment 1 Eric Williams CLA 2017-07-28 09:45:47 EDT
Going to close this one since there has been no response in over a decade. If anyone is interested in this, please feel free to re-open this bug.