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

Bug 329426

Summary: Generation of xmi:id
Product: [Modeling] Epsilon Reporter: Henning <Hager.Henning>
Component: CoreAssignee: Dimitris Kolovos <dkolovos>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: arcanefoam
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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.