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

Bug 488360

Summary: Demonstrate orthogonal connection routing in MVC example.
Product: [Tools] GEF Reporter: Alexander Nyßen <nyssen>
Component: GEF MVCAssignee: Matthias Wienand <matthias.wienand>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: matthias.wienand
Version: 0.2.0   
Target Milestone: 4.0.0 (Neon) M6   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 488352, 488358    
Bug Blocks:    

Description Alexander Nyßen CLA 2016-02-24 02:44:56 EST
We should add support to change the routing of connections within the MVC logo example via a property (through the property sheet view).

We need to ensure that when changing the router of a connection, the computation strategy of its start and end-anchors is adjusted (if needed).
Comment 1 Matthias Wienand CLA 2016-03-18 05:37:28 EDT
I added an "isSegmentBased" property to FXGeometricCurve and established the property sheet integration (FXCurvePropertySource). Alexander renamed the property to "routingStyle" and created an enum for the possible values: orthogonal or straight. The FXGeometricCurvePart sets the connection's router and interpolator depending on its "routingStyle" and adjusts the computation strategy for its start and end anchors accordingly. However, when changing the property, the control points of the curve need to be reset, which is currently not performed within an operation, and hence, is not undoable. I will resolve this ticket as fixed as soon as the property change is undoable.
Comment 2 Alexander Nyßen CLA 2016-03-21 11:39:01 EDT
Added a specific root property sheet entry in MvcLogoExampleView, which chains a clear waypoints operation in case the routing style is changed.

Resolving as fixed in 4.0.0 M6.