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

Bug 494742

Summary: IBendableContentPart.BendPoint needs to overwrite equals() and hashCode()
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 (Neon) RC3   
Hardware: All   
OS: All   
Whiteboard:

Description Alexander Nyßen CLA 2016-05-27 07:20:12 EDT
AS BendContentOperation relies on equality check do decide whether it is a noop or not, it will never report to be a noop if BendPoint does not provide a proper equals implementation. We need to ensure it overwrites equals() and hashCode(), so that two endpoints with identical positions and/or anchorages are regarded as being equal.
Comment 1 Alexander Nyßen CLA 2016-05-27 07:27:33 EDT
I pushed the following changes to origin/master:

- Generated an equals() and hashCode() implementation that uses the contentAnchorage and position.
- Generated a toString() method so debugging is easier.

Resolving as fixed in 4.0.0 RC3.