| Summary: | Dragging of Connections is broken in MVC.FX Example | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Alexander Nyßen <nyssen> |
| Component: | GEF MVC | Assignee: | gef-inbox <gef-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | matthias.wienand |
| Version: | unspecified | ||
| Target Milestone: | 3.10.0 (Mars) M2 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Alexander Nyßen
Interestingly, if both ends are attached to the same node, one of the end points stays connected. I fear this only worked because of a side-effect before (possibly because the FXChopboxAnchor or the FXChopBoxHelper recognized a change and updated the anchor positions upon dragging the connection). The FXGeometricCurvePart used a (modified) FXResizeRelocatePolicy to realize the connection drag. This updates the visual bounds of the overall connection during drag and thus relies on an updating of the end-points in case they are connected. It also seemed to need an refreshVisual() to be called within performResizeRelocate(). We need to check whether it would not be more natural to only move the waypoints accordingly (rather than the visual bounds). I disabled the behavior for now. We should provide a decent implementation within MVC.FX for it. I re-implemented connection drag via FXBendOperation. Only unconnected anchors are moved (by replacing them with static anchors at new positions). The code is published on the master branch. Therefore, I change the status to RESOLVED, FIXED. |