Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329426 - Generation of xmi:id
Summary: Generation of xmi:id
Status: CLOSED FIXED
Alias: None
Product: Epsilon
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Dimitris Kolovos CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-04 07:49 EDT by Henning CLA
Modified: 2012-04-19 17:27 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henning CLA 2010-11-04 07:49:00 EDT
In terms of the transformation with ETL it could be desirable to automatically equip model elements with the xmi:id attribute for referencing purposes. This could be a standard setting or an option.
Comment 1 Dimitris Kolovos CLA 2010-11-04 07:52:13 EDT
This has been now fixed in the SVN. To turn on XMI IDs for a model M, you need to add the following line in your code:

M.resource.useXmiIds = true;

I thought that this would be a better idea than to change the EMF model configuration dialog / ANT task, as this option is specific to XMI-based models (i.e. not Xtext/EmfText or XML-based models). If this sounds reasonable, I'll release a new interim version shortly.
Comment 2 Dimitris Kolovos CLA 2010-11-04 08:02:22 EDT
Fixed in the latest interim version (0.8.9.201011041158).
Comment 3 Dimitris Kolovos CLA 2010-11-25 08:23:38 EST
Fixed in 0.9.0.
Comment 4 Horacio Hoyos CLA 2012-04-19 17:27:39 EDT
This probably comes a little bit late but I was just figuring out how to do this and after finding this bug fix I realized this info should be somewhere in the Epsilon Book.