not selecting tree item when starting drag [message #461835] |
Sun, 02 October 2005 06:40 |
Francis Upton IV Messages: 472 Registered: July 2009 Location: Oakland, CA |
Senior Member |
|
|
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).
Any ideas about how I can solve this?
Thanks,
Francis
Platform UI Committer for Common Navigator
http://wiki.eclipse.org/index.php/Common_Navigator_Framework
http://help.eclipse.org/galileo/topic/org.eclipse.platform.d oc.isv/guide/cnf.htm
|
|
|
Re: not selecting tree item when starting drag [message #461848 is a reply to message #461835] |
Mon, 03 October 2005 07:07 |
Francis Upton IV Messages: 472 Registered: July 2009 Location: Oakland, CA |
Senior Member |
|
|
Sorry, forgot to specify platforms and versions.
This is on Linux GTK with 3.1.1.
This is different than the Win32 behavior. The node is selected in
win32, the only after the mouse is released. Still in the win32 case, I
don't want the node on which the drag started to be selected.
Francis Upton wrote:
> 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).
>
> Any ideas about how I can solve this?
>
> Thanks,
>
> Francis
Platform UI Committer for Common Navigator
http://wiki.eclipse.org/index.php/Common_Navigator_Framework
http://help.eclipse.org/galileo/topic/org.eclipse.platform.d oc.isv/guide/cnf.htm
|
|
|
Powered by
FUDForum. Page generated in 0.02627 seconds