This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The property should define policy for path routing. There should be 4 values available: 1) Always route 2) Update end points only (router is not invoked at all) 3) Disable routing until end point is moved (router is temporarily disabled until end point is moved) 4) Disable routing (router is not never invoked) This feature helps to ease management of control points changed by an user or graph-oriented layout. E.g.: 1) AddRemoveControlPointAction and MoveControlPointAction could allow you to set 2. or 3. policy to a connection widget with modified control points. Then the "user change" is not discarded and a source or a target is changed. 2) GraphLayout may render connection paths and similarly to above, it can use 2. or 3. policy on connection routed by graph-oriented layout so the path is not discarded and overriden by connection-widget-router immediately.
Created attachment 47150 [details] Patch
A patch has been attached. It contains: 1) ConnectionWidget.routingPolicy property and its logic is added 2) AddRemoveControlPointAction and MoveControlPointAction has additional "routingPolicy" parameter. 3) Documentation has new "Routing Policy" section. 4) "test.routing.ActionsWithRoutingPolicyTest" and "test.routing.RoutingPolicyTest" examples. 5) JavaDoc, api-changes, manifest, ... Asking for fast-api-review.
The patch has been committed to the CVS.