EMF target model with xmi:id [message #637116] |
Thu, 04 November 2010 05:28  |
Eclipse User |
|
|
|
Hello,
when I took a look at the resulting model of my ETL transformation (with a simple text editor) I was suprised that none of the elements got equipped with an xmi:id. I need these ids in my model, because my GMF editors expect them. Is there a switch to in the load task to have them set in the model?
My load task looks like that:
<epsilon.loadModel name="myModel" type="EMF">
<parameter name="modelFile" file="./out/out.model"/>
<parameter name="metamodelUri" value="http://myuri.com"/>
<parameter name="readOnLoad" value="false"/>
<parameter name="storeOnDisposal" value="true"/>
</epsilon.loadModel>
Thanks for your help!
Henning
|
|
|
|
|
|
|
|
Re: EMF target model with xmi:id [message #637678 is a reply to message #637660] |
Mon, 08 November 2010 05:19   |
Eclipse User |
|
|
|
Hi Henning,
If you're using a generated implementation of Resource to load your
models (i.e. you've generated code from your Ecore metamodel) you'll
need to take care of XMI ids there by overriding the useUUIDs() methods.
If the GMF problems persist after you've fixed this, could you please
zip and send me a configuration that I can use to reproduce this at
epsilon.devs gmail com?
Cheers,
Dimitris
Henning wrote:
> Hi Dimitris,
>
> so far I used the file extension ".model" as a my target model output to
> quickly access the result in the Exceed editor, however, to access the
> transformation model in my own GMF Editors I need my own "filetype". But
> the change of file type in the ANT script causes the following exception:
>
> org.eclipse.core.runtime.CoreException:
> /Users/henning/Documents/workspaces/diplom/de.hager/launch.x ml:31:
> Property 'useXmiIds' not found in object
> org.eclipse.gmf.runtime.emf.core.resources.GMFResource@fc925db
>
> I'm also still experiencing general problems with my GMF editors right
> after the transformation process, which are gone after restarting
> eclipse. Even though, I didn't register the relevant meta mode as
> suggested in
> http://www.eclipse.org/forums/index.php?t=msg&th=199738& amp;start=0&S=fed4683c802f513719be853aa4c5ea9c
> post.
>
> Thanks for your help,
>
> Henning
|
|
|
|
Powered by
FUDForum. Page generated in 0.05150 seconds