Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 351364 - Correctly set the opposite reference in the operation Create Reference
Summary: Correctly set the opposite reference in the operation Create Reference
Status: RESOLVED FIXED
Alias: None
Product: Edapt
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal
Target Milestone: ---   Edit
Assignee: Markus Herrmannsdoerfer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-06 14:53 EDT by Markus Herrmannsdoerfer CLA
Modified: 2011-07-06 14:57 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.