Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » how to re-select connection
how to re-select connection [message #1722872] Tue, 09 February 2016 20:46 Go to next message
maria  finkelstein is currently offline maria finkelsteinFriend
Messages: 19
Registered: December 2011
Location: New York, NY
Junior Member
Hello,

In my diagram i have nested container shapes . I have problem with connection loosing its anchor when container has new shape and got bigger.
how do i handle that? my guess is that Layout Feature some how need to take care of it... but i am not sure.
what is the right way to fix it .

i am attaching a screen shot
Re: how to re-select connection [message #1722972 is a reply to message #1722872] Wed, 10 February 2016 15:44 Go to previous messageGo to next message
Michael Wenz is currently offline Michael WenzFriend
Messages: 1883
Registered: July 2009
Location: Walldorf, Germany
Senior Member
Hi Maria,

ususally you do not need to care about connections when moving shapes. Connections start and end in a anchors (either explicitly defined ones or the default ChopboxAnchor). When you move the shape all children (anchors are children as well) are moved along. This even works if you change the parent of the shape.

You should check in your code if there any place (e.g. the layout feature you mentioned) that change the anchor of the connection (Connection.setStart/setEnd) or move an anchor to another parent.

HTH,
Michael
Re: how to re-select connection [message #1722982 is a reply to message #1722972] Wed, 10 February 2016 16:11 Go to previous message
maria  finkelstein is currently offline maria finkelsteinFriend
Messages: 19
Registered: December 2011
Location: New York, NY
Junior Member
Thank your for quick reply,

make sense, i check this out

regards,
maria
Previous Topic:Reload Editor from different EditorInput for Save As
Next Topic:[SOLVED] How to change the selection border color and thickness
Goto Forum:
  


Current Time: Sun Jan 21 02:53:35 GMT 2018

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

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