Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » How to get from .ecorediag to .ecore/.genmodel?
How to get from .ecorediag to .ecore/.genmodel? [message #139218] Mon, 27 July 2009 11:00 Go to next message
Eclipse UserFriend
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 #139233 is a reply to message #139218] Mon, 27 July 2009 13:39 Go to previous messageGo to next message
Mario Winterer is currently offline Mario WintererFriend
Messages: 136
Registered: July 2009
Senior Member
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 #139244 is a reply to message #139218] Mon, 27 July 2009 13:45 Go to previous messageGo to next message
Jacques LESCOT is currently offline Jacques LESCOTFriend
Messages: 247
Registered: July 2009
Senior Member
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 #139255 is a reply to message #139244] Mon, 27 July 2009 15:30 Go to previous message
Eclipse UserFriend
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 13:39 Go to previous message
Mario Winterer is currently offline Mario WintererFriend
Messages: 136
Registered: July 2009
Senior Member
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 13:45 Go to previous message
Jacques LESCOT is currently offline Jacques LESCOTFriend
Messages: 247
Registered: July 2009
Senior Member
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 15:30 Go to previous message
Eclipse UserFriend
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.
Previous Topic:How to get from .ecorediag to .ecore/.genmodel?
Next Topic:GenModel Doc in Ecore Diagram Editor
Goto Forum:
  


Current Time: Sat Oct 05 01:27:33 GMT 2024

Powered by FUDForum. Page generated in 0.03737 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top