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

Bug 479361

Summary: Fix FXBendPolicy does not retrieve correct anchor in all cases.
Product: [Tools] GEF Reporter: Alexander Nyßen <nyssen>
Component: GEF MVCAssignee: Alexander Nyßen <nyssen>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.2.0   
Target Milestone: 4.0.0 / 3.11.0 (Neon) M3   
Hardware: All   
OS: All   
Whiteboard:

Description Alexander Nyßen CLA 2015-10-08 12:55:04 EDT
Inferring the overlay anchor is not correctly implemented, as it does not guarantee that the actually overlaid anchor is retrieved (i.e. that of the candidate index). We need to fix this and ensure the API of the FXBendPolicy is more concise (e.g. the isOverlay() method is not side-effect free).
Comment 1 Alexander Nyßen CLA 2015-10-08 13:00:48 EDT
- Revised API of FXBendPolicy (renamings and cleanups).
- Fixed that wrong overlay anchor was determined in certain situations.
- Ensured that FXBendOnSegmentHandleDragPolicy can properly adjust the segment handles for the case the the commit operation of FXBendPolicy is a no-op (which did not occur before, because of a side-effect related to the wrong overlay anchor computation).

Pushed all changes to origin/master. Resolving as fixed in 3.11.0 M3.