How to get from .ecorediag to .ecore/.genmodel? [message #139218] |
Mon, 27 July 2009 07:00  |
Eclipse User |
|
|
|
Originally posted by: gerrit.huebbers.stud.uni-due.de
So I designed a diagram using Ecore Tools (i.e., a .ecorediag file).
Now I want to use this diagram for more than rather a visual
representation. I want to export/save/transform it into a .ecore or
..genmodel file for further processing.
How can I do this?
Thanks.
|
|
|
|
|
Re: How to get from .ecorediag to .ecore/.genmodel? [message #139255 is a reply to message #139244] |
Mon, 27 July 2009 11:30  |
Eclipse User |
|
|
|
Originally posted by: gerrit.huebbers.stud.uni-due.de
Hi Mario & Jacques,
thank you two for your replies - which solved my problem.
Confusion was caused on my side as I used the function "New Ecore
Diagram" -> "Create from an existing model". I saved the generated
..ecorediag file in a project different from the project hosting the
..ecore file. I didn't expect "that old .ecore file" to change
synchronously with every edit I was doing to the .ecorediag diagram.
Thanks again,
Gerrit
Jacques LESCOT schrieb:
> Hi Gerrit,
>
> If you have designed a diagram using Ecore Tools, you necessarily have
> an *.ecore file that was created at the same time. The *.ecorediag
> contains just diagramming and graphical informations that are linked
> with your semantic model (the *.ecore file).
>
> So, once you found the *.ecore file, you should be able to generate the
> *.genmodel file thanks to EMF stuff (select your *.ecore file, right
> clic > New > Other... > Eclipse Modeling Framework > EMF Generator Model)
>
> Regards,
> Jacques
>
> Gerrit Hübbers a écrit :
>> So I designed a diagram using Ecore Tools (i.e., a .ecorediag file).
>> Now I want to use this diagram for more than rather a visual
>> representation. I want to export/save/transform it into a .ecore or
>> .genmodel file for further processing.
>>
>> How can I do this?
>>
>> Thanks.
|
|
|
Re: How to get from .ecorediag to .ecore/.genmodel? [message #621184 is a reply to message #139218] |
Mon, 27 July 2009 09:39  |
Eclipse User |
|
|
|
Gerrit,
if you create a .ecorediag file using the ecore tools,
a .ecore file that contains the model will be created automatically.
It resides in the same directory as your .ecorediag and has the same
name (with suffix .ecore).
Use "File"->"New"->"Other..."->"EMF Generator Model" to create a
..genmodel file using your Ecore model.
See also
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.emf.doc/tutorials/clibmod/clibmod.html
and continue with Step 2: Generate the EMF Model Code
Mario
Gerrit Hübbers schrieb:
> So I designed a diagram using Ecore Tools (i.e., a .ecorediag file).
> Now I want to use this diagram for more than rather a visual
> representation. I want to export/save/transform it into a .ecore or
> .genmodel file for further processing.
>
> How can I do this?
>
> Thanks.
|
|
|
Re: How to get from .ecorediag to .ecore/.genmodel? [message #621185 is a reply to message #139218] |
Mon, 27 July 2009 09:45  |
Eclipse User |
|
|
|
Hi Gerrit,
If you have designed a diagram using Ecore Tools, you necessarily have
an *.ecore file that was created at the same time. The *.ecorediag
contains just diagramming and graphical informations that are linked
with your semantic model (the *.ecore file).
So, once you found the *.ecore file, you should be able to generate the
*.genmodel file thanks to EMF stuff (select your *.ecore file, right
clic > New > Other... > Eclipse Modeling Framework > EMF Generator Model)
Regards,
Jacques
Gerrit Hübbers a écrit :
> So I designed a diagram using Ecore Tools (i.e., a .ecorediag file).
> Now I want to use this diagram for more than rather a visual
> representation. I want to export/save/transform it into a .ecore or
> .genmodel file for further processing.
>
> How can I do this?
>
> Thanks.
|
|
|
Re: How to get from .ecorediag to .ecore/.genmodel? [message #621186 is a reply to message #139244] |
Mon, 27 July 2009 11:30  |
Eclipse User |
|
|
|
Originally posted by: gerrit.huebbers.stud.uni-due.de
Hi Mario & Jacques,
thank you two for your replies - which solved my problem.
Confusion was caused on my side as I used the function "New Ecore
Diagram" -> "Create from an existing model". I saved the generated
..ecorediag file in a project different from the project hosting the
..ecore file. I didn't expect "that old .ecore file" to change
synchronously with every edit I was doing to the .ecorediag diagram.
Thanks again,
Gerrit
Jacques LESCOT schrieb:
> Hi Gerrit,
>
> If you have designed a diagram using Ecore Tools, you necessarily have
> an *.ecore file that was created at the same time. The *.ecorediag
> contains just diagramming and graphical informations that are linked
> with your semantic model (the *.ecore file).
>
> So, once you found the *.ecore file, you should be able to generate the
> *.genmodel file thanks to EMF stuff (select your *.ecore file, right
> clic > New > Other... > Eclipse Modeling Framework > EMF Generator Model)
>
> Regards,
> Jacques
>
> Gerrit Hübbers a écrit :
>> So I designed a diagram using Ecore Tools (i.e., a .ecorediag file).
>> Now I want to use this diagram for more than rather a visual
>> representation. I want to export/save/transform it into a .ecore or
>> .genmodel file for further processing.
>>
>> How can I do this?
>>
>> Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.05601 seconds