Creating a connection between NodeEP and ConnectionEP [message #15634] |
Thu, 25 July 2002 05:10  |
Eclipse User |
|
|
|
Hi
in my editorpart i would like the users to be able to add some "creator
comments", that will be similar to the label in the Logic example. in
order to do so i created something similar to the Label in the Logic
editor, but i would like to improve it a little, and to allow the user to
"attach" the label to another editpart, i.e., draw a line between the
label (with the comment), and the editpart. the problem is that i would
like this label to be attached not only to nodes in the graph (this is
simple, using a connection), but also to attach the label to a connection
in the graph. is there a way to make a connection between nodeEditPart and
a ConnectionEditPart ?
thanks
yoav
|
|
|
Re: Creating a connection between NodeEP and ConnectionEP [message #15802 is a reply to message #15634] |
Thu, 25 July 2002 09:42  |
Eclipse User |
|
|
|
Originally posted by: none.ibm.com
Yes, this works. ConnectionEditParts inherit from GraphicalEditPart, and
therefore support a set of their *own* source and target connections. We
will be adding a ConnectionAnchor in draw2d that anchors to a spot on
another connection. You can write one yourself with about 3 methods.
"Yoav Rubin" <yoav@il.ibm.com> wrote in message
news:ahofb3$b8u$1@rogue.oti.com...
> Hi
> in my editorpart i would like the users to be able to add some "creator
> comments", that will be similar to the label in the Logic example. in
> order to do so i created something similar to the Label in the Logic
> editor, but i would like to improve it a little, and to allow the user to
> "attach" the label to another editpart, i.e., draw a line between the
> label (with the comment), and the editpart. the problem is that i would
> like this label to be attached not only to nodes in the graph (this is
> simple, using a connection), but also to attach the label to a connection
> in the graph. is there a way to make a connection between nodeEditPart and
> a ConnectionEditPart ?
> thanks
> yoav
>
|
|
|
Powered by
FUDForum. Page generated in 0.03114 seconds