Skip to main content



      Home
Home » Eclipse Projects » GEF » Moving Nodes by dragging a connection
Moving Nodes by dragging a connection [message #229322] Thu, 18 January 2007 07:55 Go to next message
Eclipse UserFriend
Originally posted by: schmelly.uni-paderborn.de

Hello together,

I asked this question in the gmf newsgroup already but i think the gef
newsgroup is a better place:

Id like to move two nodes in a diagram by dragging the connection
between these nodes around (I need this for a sequencechart where
messages between lifelines are connections).

Does anybody have an idea for a general approach to this? E.g. what
editpolicies i'll need or something?


best regards,
David
Re: Moving Nodes by dragging a connection [message #229336 is a reply to message #229322] Thu, 18 January 2007 09:47 Go to previous message
Eclipse UserFriend
I have never done this but here is a suggestion:

In your connection's editpolicies, you can create a command to move the
source and target editparts (using the same drag delta obtained from the
connection). You probably don't have to worry about the connection
because it should follow the source and target figures automatically.

Nhu

David Schmelter wrote:
> Hello together,
>
> I asked this question in the gmf newsgroup already but i think the gef
> newsgroup is a better place:
>
> Id like to move two nodes in a diagram by dragging the connection
> between these nodes around (I need this for a sequencechart where
> messages between lifelines are connections).
>
> Does anybody have an idea for a general approach to this? E.g. what
> editpolicies i'll need or something?
>
>
> best regards,
> David
Previous Topic:Draw2d Figure Translation
Next Topic:resizing when moving
Goto Forum:
  


Current Time: Tue May 13 00:48:44 EDT 2025

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

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

Back to the top