Skip to main content



      Home
Home » Eclipse Projects » GEF » Creating a connection between NodeEP and ConnectionEP
Creating a connection between NodeEP and ConnectionEP [message #15634] Thu, 25 July 2002 05:10 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:TextTransferDropTargetListener : what's its usage
Next Topic:Problem with connection
Goto Forum:
  


Current Time: Mon Jun 02 17:53:52 EDT 2025

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

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

Back to the top