|Avoiding a selection change during a drag [message #336232]
||Tue, 02 June 2009 08:36
| Raajesh B.Kashyap
Registered: July 2009
It appears that it is not possible to avoid a selection change being |
triggered when I am dragging something out of, say, a TreeViewer. The
moment I press the left mouse button on an object in the tree and start
dragging, the object is selected, and other views that are registered as
listeners with the eclipse selection service start responding to the
selection change (even though I have not yet released the mouse button and
am still dragging).
Even without adding drag and drop support to a viewer, the selection
change occurs when I just press the left mouse button on the object. (This
can be tried with any treeviewer example).
By contrast, if I look at Windows explorer, the right hand side does not
display the contents of the folder when the left mouse button is pressed.
It only displays the contents when the mouse button is released. This
makes it possible to drag a folder into an object on the right hand side.
We have a situation in our application where the user needs to be able to
drag and drop an object from the tree into another view. The other view
normally responds to selections in the tree. But it does so even in the
case when the user is trying to drag something and drop into the other
Is there a way we can control when/how the viewer responds to the
selection? ie., the selection change must be triggered only when the mouse
button is released, or is this a general issue to be addressed using a bug
Powered by FUDForum
. Page generated in 0.01637 seconds