[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] Re: Moving Nodes by dragging a connection
|
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@xxxxxxxxxxxxxxxx> ha scritto nel messaggio
news:eod9l7$60q$1@xxxxxxxxxxxxxxxxxxxx
> 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