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

Bug 377189

Summary: [Nested UML Compare] the merged elements have the same XMI ID
Product: [Modeling] Papyrus Reporter: Vincent Lorenzo <vincent.lorenzo>
Component: CoreAssignee: Vincent Lorenzo <vincent.lorenzo>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3    
Version: 0.9.0   
Target Milestone: M7   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 371606    

Description Vincent Lorenzo CLA 2012-04-19 09:51:33 EDT
To reproduce this bug, we can use the example NestedCompare_DifferenceParentExample.
Merging the property from Class2 to Class1 works fine, but the XMI ID of the property is duplicated too.
We should provide a solution (in the merger) to distinghuish this case and avoid to get 2 elements with the same ID in a model.
Comment 1 Vincent Lorenzo CLA 2012-05-02 04:48:55 EDT
R8003 : a first commit for this bug, but it is not yet corrected.
Comment 2 Vincent Lorenzo CLA 2012-06-25 10:24:18 EDT
Corrected in R8422 : 
Use the class PapyrusCompareEobjectCopier to copy the XMi Id only when any object with the same id exists in the resource
+ add a test in the command which copy the XMI_ID

+ format and organize import for some Papyrus EMF Compare plugin
+ we get EditingDomain using getAdapter now
Comment 3 Vincent Lorenzo CLA 2012-06-29 06:00:22 EDT
This bug can be marked as resolved fixed.