Skip to main content



      Home
Home » Eclipse Projects » GEF » connecting a connection
connecting a connection [message #80496] Thu, 22 May 2003 15:33 Go to next message
Eclipse UserFriend
Originally posted by: joerg.doblaski.gmx.de

Hello NG,

in my project I need to create connections between other connections or
between a connection and a figure. I added the required methods to the
connection-model, the connection-editpart and so on (just like in the models
and editparts of my connectable figures) and created an anchor for each new
connection-figure. If I try to connect these connections, the
ConnectionCommand is executed with the correct source, target and anchors,
but no connection is created. If I try to connect a connection and a figure,
the new connection is created between figure's anchor and the point(0,0) (it
looks just like the target anchor is null but I'm sure it isn't).

Has anyone any idea?

regards,

J
Re: connecting a connection [message #80524 is a reply to message #80496] Thu, 22 May 2003 16:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

Sounds like NodeEditPart interface is not completely implemented on the
connection which is also a node?

when the new connectionEditPart is created, it will refresh and try to
obtain the ConnectionAnchors for source and target ends. Try putting
breakpoints in AbstractConnectionEditPart#getSource/TargetConnectionAnchor( )

"J
Re: connecting a connection [message #80538 is a reply to message #80524] Thu, 22 May 2003 17:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: joerg.doblaski.gmx.de

"Randy Hudson" wrote
> Sounds like NodeEditPart interface is not completely implemented on the
> connection which is also a node?

I implemented the NodeEditPart - interface, just like in my FigureEditPart
(get/setSource/TargetConnectionAnchor(request/connection)... )

> Try putting breakpoints in
AbstractConnectionEditPart#getSource/TargetConnectionAnchor( )

This seems to be the problem. If the node is a connection,
AbstractConnectionEditPart#getSource/TargetConnectionAnchor( ) is never
called.


regards,

J
Re: connecting a connection [message #80553 is a reply to message #80538] Thu, 22 May 2003 17:53 Go to previous message
Eclipse UserFriend
Originally posted by: joerg.doblaski.gmx.de

"J
Previous Topic:Connections without models
Next Topic:Org Chart/Hierarchical Tree Layout for 2.2
Goto Forum:
  


Current Time: Thu Jul 17 23:31:47 EDT 2025

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

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

Back to the top