[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.mdt.uml2] Re: Existing genmodel not picked up

Volker,

Comments below.

Volker Stolz wrote:
Dear all,
I defined a UML profile, and generated code through ecore and a genmodel description.


In plugin.xml, I have
<package
class="RCOSPrimitiveTypesPackageImpl"
How can the class have no package qualification?
genModel="libraries/RCOSPrimitiveTypes.library.genmodel" uri="http://rcos.iist.unu.edu/RCOSPrimitiveTypes.ecore";>
</package>


The URI is the same as in the .ecore-file. The corresponding UML file is also exported. In the second Eclipse instance that uses this plugin, I create a UML model that references the UML profile and I use one of the defined datatypes as an attribute in a class.
I don't know much about profiles.
When then I want to generate an EMF model from the UML file, the wizard wants to create RCOSPrimitiveTypes.ecore in the current directory and doesn't even offer me to select the one with the .genmodel defined through the plugin!
Did the plugin with the above registration successfully install in the runtime environment?
After a day of struggling, I found that the wizard is actually looking for a generated_package with URI http:///RCOSPrimitiveTypes.ecore (note the missing host-part). The UML->Ecore step produces an ecore file that doesn't reference the existing package, but rather wants to produce a copy.

I'm glad for any suggestion on how to make EMF pick up the existing files. I'm guessing there must be a way of specifying in the plugin which ecore belongs to which UML file?
I don't understand where http:///RCOSPrimitiveTypes.ecore would come from.

This sounds more like a UML2 question I've added their newsgroup to the "to" list of the reply..
Volker