Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Moving Nodes by dragging a connection
Moving Nodes by dragging a connection [message #229322] Thu, 18 January 2007 12: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 14:47 Go to previous message
Nhu Le is currently offline Nhu LeFriend
Messages: 47
Registered: July 2009
Member
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: Fri Apr 26 12:45:50 GMT 2024

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

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

Back to the top