[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.mdt.uml2] Re: UML2Ecore convertion
|
Kenn,
Thank you very much, it's working. The option to process Ecore tagged values
was not enabled.
Chokri
"Kenn Hussey" <Kenn.Hussey@xxxxxxxxx> a écrit dans le message de news:
h8b9oc$d5h$1@xxxxxxxxxxxxxxxxxxxx
> Chokri,
>
> The namespace URI is controlled via a stereotype application; to arrive at
> the desired URI, apply the Ecore profile to your model, apply the EPackage
> stereotype to the package, set a value for the 'nsURI' tag, and ensure
> that the option to process Ecore tagged values is enabled when doing the
> conversion.
>
> Kenn
>
> Chokri Mraidha wrote:
>> 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
>>
>>
>>