Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Moving Nodes by dragging a connection
Moving Nodes by dragging a connection [message #92454] Sun, 14 January 2007 08:02 Go to next message
Eclipse UserFriend
Originally posted by: schmelly.uni-paderborn.de

Hello again,

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 code to change?


best regards,
David
Re: Moving Nodes by dragging a connection [message #110587 is a reply to message #92454] Fri, 09 March 2007 09:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: angelo.marguglio.eng.it

I tried this in GEF, but I don't know if it's possible in GMF, even if I
think so. You should try to:
- disable bendpoints for the connection
- use getCreateBendpointCommand to return you own command in order to apply
the move-delta (I find the gap between the old position and the request
location) of the request to your ends
AM

protected Command getCreateBendpointCommand(BendpointRequest request) {

return new MessageMoveCommandSequence((Message)model, getHost());

}




"David Schmelter" <schmelly@uni-paderborn.de> ha scritto nel messaggio
news:eod9l7$60q$1@utils.eclipse.org...
> Hello again,
>
> 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 code to change?
>
>
> best regards,
> David
Re: Moving Nodes by dragging a connection [message #180737 is a reply to message #92454] Thu, 03 April 2008 08:33 Go to previous message
Eclipse UserFriend
Originally posted by: daniel-p.gmx.de

Hi,

does anybody have a solution to that problem in the meantime. I have the
exact same problem at the moment.

Cheers,
Daniel

David Schmelter schrieb:
> Hello again,
>
> 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 code to change?
>
>
> best regards,
> David
Previous Topic:Figure with a compartment
Next Topic:GMF 2.0.2 consolidated zip missing
Goto Forum:
  


Current Time: Thu May 29 10:13:40 EDT 2025

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

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

Back to the top