"Copy" bendpoints into another FreeFormConnection [message #1319639] |
Mon, 28 April 2014 05:44  |
Eclipse User |
|
|
|
Hey all,
I came across a behaviour I've never noticed before.
If I create a FreeFormConnection and add the bendpoints from another FreeFormConnection into it, the bendpoints from the first one are deleted afterwards.
AddConnectionContext addContext = new AddConnectionContext(start, end);
FreeFormConnection newCon = (FreeFormConnection) getFeatureProvider().addIfPossible(addContext);
FreeFormConnection tc = (FreeFormConnection) c;
System.out.println(tc.getBendpoints().size()); //returns 2
newCon.getBendpoints().addAll(tc.getBendpoints());
System.out.println(tc.getBendpoints().size()); //returns 0
Am I doing something wrong?
[Updated on: Mon, 28 April 2014 05:46] by Moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 2.45798 seconds