|
Re: how to move an anchor by user [message #203867 is a reply to message #203850] |
Mon, 28 November 2005 17:00 |
Eclipse User |
|
|
|
Originally posted by: ingo.koch[nospam].sap.com
Hi,
I suppose you have to create an editpart with a little figure, which hosts
your anchor to receive move-requests.
Regards, Ingo
<el_bosso@gmx.de> wrote in message news:dmfa7e$a1d$1@news.eclipse.org...
> Hi,
>
> I want to make it possible to let the use move an anchor. I tried to add a
> XYLaoutPolicy to the Connection, hoping I get an request fo a
> moveChangedCommand, but I get no one.
>
> My question is, how can I get the new coordinates, if the user moves the
> anchor?
>
> thangs in advance
> Hannes
|
|
|
Re: how to move an anchor by user [message #203871 is a reply to message #203867] |
Mon, 28 November 2005 18:35 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
No, you don't. There are already endpoint handles (EndpointEditPolicy),
which send "reconnect" requests to the target node. All you have to do is
interpret those requests as moves, and create commands that move the anchors
in the model. Then, when you refresh your figure, set the appropriate
connection anchor on the connection based on the model's properties. You
will have to write a simple anchor implementation for this.
"Ingo Koch" <ingo.koch[nospam]@sap.com> wrote in message
news:dmfd39$f02$1@news.eclipse.org...
> Hi,
>
> I suppose you have to create an editpart with a little figure, which hosts
> your anchor to receive move-requests.
>
> Regards, Ingo
>
>
>
>
> <el_bosso@gmx.de> wrote in message news:dmfa7e$a1d$1@news.eclipse.org...
>> Hi,
>>
>> I want to make it possible to let the use move an anchor. I tried to add
>> a
>> XYLaoutPolicy to the Connection, hoping I get an request fo a
>> moveChangedCommand, but I get no one.
>>
>> My question is, how can I get the new coordinates, if the user moves the
>> anchor?
>>
>> thangs in advance
>> Hannes
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03113 seconds