Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345256 - Ensure that UUIDs are set on the correct resources
Summary: Ensure that UUIDs are set on the correct resources
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-05-10 08:06 EDT by Markus Herrmannsdoerfer CLA
Modified: 2011-05-10 08:09 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-05-10 08:06:19 EDT
The UUIDs of model elements are stored with the resources in EMF. However, Edapt preserves the UUIDs during migration as part of the model elements. It needs to be ensured that the UUIDs have to be read from the correct resources of the model elements before migration and written to the correct ones after migration. Especially, this has to work in case of cross resource containment.
Comment 1 Markus Herrmannsdoerfer CLA 2011-05-10 08:09:26 EDT
Now, EObject.eResource is used to get and set the UUID to ensure that the UUIDs are stored in the correct resource.