[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.mdt.uml2] UML2Ecore convertion

Hello,

I would like to call the UML2Ecore converter programmatically. I have 
written some code calling the UMLUtil.convertToEcore() method.
The convertion is done but the generated NsURI are not correct which makes 
impossible the creation of a genmodel file from the generated ecore files.
The generated uml.ecore file has a Ns URI = http:///uml.ecore instead of 
http://www.eclipse.org/uml2/2.1.0/UML
Likewise for the ecore.ecore file, Ns URI = http:///ecore.ecore instead of 
http://www.eclipse.org/emf/2002/Ecore

Any idea on why is this happening?
Is there any code snipet on how to call properly the UML2Ecore converter 
programmatically?


Thank you in advance for your help.

Chokri