| [news.eclipse.modeling.mdt.uml2] Re: Existing genmodel not picked up |
Volker,
Comments below.
Dear all,How can the class have no package qualification?
I defined a UML profile, and generated code through ecore and a genmodel description.
In plugin.xml, I have
<package
class="RCOSPrimitiveTypesPackageImpl"
genModel="libraries/RCOSPrimitiveTypes.library.genmodel" uri="http://rcos.iist.unu.edu/RCOSPrimitiveTypes.ecore">I don't know much about profiles.
</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.
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 don't understand where http:///RCOSPrimitiveTypes.ecore would come from.
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?
Volker