Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Custom DragTracker
Custom DragTracker [message #209631] Thu, 11 March 2004 09:35 Go to next message
Eclipse UserFriend
I have a class diagram where a class is made up of boxes and text such
that the top level box (node) can be dragged around the diagram. I have
written a custom drag tracker for the text so that when the text is
selected, it also selects the node so that the node can be dragged. I've
done this by overriding the performSelection() method in
DragEditPartsTracker and appending the node to the selection (as suggested
by the response to one of my earlier questions).

This works to a point. If I select some text, it selects the node. If I
then perform a drag, then the outline of the node follows the cursor. The
problem is that I get the "no drop" symbol and cannot drop the node
anywhere. What is preventing this from happening?

Thanks.

James
WRONG FORUM Re: Custom DragTracker [message #209645 is a reply to message #209631] Thu, 11 March 2004 09:43 Go to previous message
Eclipse UserFriend
Sorry Guys - wrong forum, this was intended for GEF.

James Willans wrote:

> I have a class diagram where a class is made up of boxes and text such
> that the top level box (node) can be dragged around the diagram. I have
> written a custom drag tracker for the text so that when the text is
> selected, it also selects the node so that the node can be dragged. I've
> done this by overriding the performSelection() method in
> DragEditPartsTracker and appending the node to the selection (as suggested
> by the response to one of my earlier questions).

> This works to a point. If I select some text, it selects the node. If I
> then perform a drag, then the outline of the node follows the cursor. The
> problem is that I get the "no drop" symbol and cannot drop the node
> anywhere. What is preventing this from happening?

> Thanks.

> James
Previous Topic:console document access
Next Topic:Build jar
Goto Forum:
  


Current Time: Tue Jun 03 17:15:56 EDT 2025

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

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

Back to the top