Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsnot selecting tree item when starting drag
https://www.eclipse.org/forums/index.php/mv/msg/146722/461835/#msg_461835
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]]>Francis Upton IV2005-10-02T06:40:38-00:00Re: not selecting tree item when starting drag
https://www.eclipse.org/forums/index.php/mv/msg/146722/461848/#msg_461848
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]]>Francis Upton IV2005-10-03T07:07:11-00:00