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

Bug 351364

Summary: Correctly set the opposite reference in the operation Create Reference
Product: [Modeling] Edapt Reporter: Markus Herrmannsdoerfer <herrmama>
Component: CoreAssignee: Markus Herrmannsdoerfer <herrmama>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Markus Herrmannsdoerfer CLA 2011-07-06 14:53:39 EDT
COPE provides the method Metamodel.setEOpposite that automatically sets the opposite in models. This method is used in the operation Create Reference to set the opposite. However, the operation does not work correctly when applied to models, leading to a validation error.
Comment 1 Markus Herrmannsdoerfer CLA 2011-07-06 14:57:07 EDT
The references need to be passed in a certain order so that the opposite is correctly set: first the reference already available and then the reference for which values need to be added to the model. However, this was not performed correctly in the operation Create Reference.