Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 443956

Summary: Inconsistency between GMF bendpoints and draw2D when reconnecting edge
Product: [Modeling] Sirius Reporter: Florian Barbin <florian.barbin>
Component: DiagramAssignee: Steve Monnier <steve.monnier>
Status: CLOSED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: maxime.porhel, steve.monnier
Version: 1.0.0Keywords: triaged
Target Milestone: 2.0.0   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Result after a reconnect from "eClass3" target to "eClass2"
none
Test case to reproduce this bug none

Description Florian Barbin CLA 2014-09-12 10:52:29 EDT
Created attachment 247009 [details]
Result after a reconnect from "eClass3" target to "eClass2"

When reconnecting an edge, the GMF bendpoints coordinates become inconsistency. That cause a strange behavior when converting the edge to rectilinear (see screenshot)
Comment 1 Florian Barbin CLA 2014-09-12 10:58:21 EDT
Created attachment 247010 [details]
Test case to reproduce this bug

* Import the test case and open the unique diagram.
* Reconnect the edge from "eClass3" to "eClass2"
* The result is the same than the one displayed by the screenshot.

The Draw2D constraints are those ones:

     0:Point(645.0, 245.0)
     1:Point(645.0, 314.0)

The points really displayed are those ones:

     0: Point(330.0, 125.0)
     1: Point(645.0, 125.0)
     2: Point(645.0, 157.0)
     3: Point(330.0, 157.0)
Comment 2 Steve Monnier CLA 2014-09-30 08:59:40 EDT
Thanks to https://bugs.eclipse.org/bugs/show_bug.cgi?id=445195 the behaviour of this current issue is fixed. The reconnected edge is more direct instead of having a weird angle. Furthermore, the draw2D coordinates and the GMF coordinates matches
Comment 3 Pierre-Charles David CLA 2014-10-27 06:52:57 EDT
Available in Sirius 2.0.0.