Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsGef Connection source and endpoint location update
https://www.eclipse.org/forums/index.php/mv/msg/261701/755314/#msg_755314
i have an editpart's to which connections are made , when the editpart location is changed the connection endpoints also must update their location .
and also the connection to the editparts must occur only to the four sides of the rectangle. can can any one advice me how to accomplish it?]]>karthick9686@gmail.com Missing name2011-11-08T05:09:59-00:00Re: Gef Connection source and endpoint location update
https://www.eclipse.org/forums/index.php/mv/msg/261701/755453/#msg_755453
what you will have to do is to provide respective ConnectionAnchor implementations for your source and target figures, which your source and target EditParts will have to provide via the methods of the NodeEditPart interface (which they have to implement as being valid source/target for connections). There is no predefined connection anchor that provides your desired behavior, but you may easily create one by subclassing AbstractConnectionAnchor. It already provides a listener mechanism, which will update the locations upon changes to the reference figure.