Avoiding a selection change during a drag [message #336232] |
Tue, 02 June 2009 08:36 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Raajesh B.Kashyap![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=Raajesh.Kashyap%40ugs.com) Messages: 7 Registered: July 2009 |
Junior Member |
|
|
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
view.
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
report?
|
|
|
|
Powered by
FUDForum. Page generated in 0.04065 seconds