Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Avoiding a selection change during a drag
Avoiding a selection change during a drag [message #336232] Tue, 02 June 2009 08:36 Go to next message
Raajesh  B.Kashyap is currently offline Raajesh B.KashyapFriend
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?
Re: Avoiding a selection change during a drag [message #336393 is a reply to message #336232] Wed, 10 June 2009 07:29 Go to previous message
Raajesh  B.Kashyap is currently offline Raajesh B.KashyapFriend
Messages: 7
Registered: July 2009
Junior Member
I've created a bug report for this at:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=279559
Previous Topic:Is there any command to change font size in the platform?
Next Topic:[CommonNavigator] Handling Global 'Open' to open an Editor
Goto Forum:
  


Current Time: Fri Dec 19 16:38:42 GMT 2014

Powered by FUDForum. Page generated in 0.10761 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software