Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumshow to make instance model from ecore file
https://www.eclipse.org/forums/index.php/mv/msg/197083/628455/#msg_628455
I have an ecore metamodel called owl.ecore, and I want to create models where classes belong to the metamodelEcore file]]>wafaa2010-05-23T19:07:27-00:00Re: how to make instance model from ecore file
https://www.eclipse.org/forums/index.php/mv/msg/197083/628456/#msg_628456
To do this dynamically, you can use Create Dynamic Instance from an
EClass' context menu. Otherwise, follow some of the basic tutorials on
the EMF documentation page.
wafaa wrote:
> how to make instance model from ecore file
>
> I have an ecore metamodel called owl.ecore, and I want to create
> models where classes belong to the metamodelEcore file
>]]>Ed Merks2010-05-24T12:36:39-00:00Re: how to make instance model from ecore file
https://www.eclipse.org/forums/index.php/mv/msg/197083/1290049/#msg_1290049
Ed Merks wrote on Mon, 24 May 2010 08:36
Wafaa,
To do this dynamically, you can use Create Dynamic Instance from an
EClass' context menu. Otherwise, follow some of the basic tutorials on
the EMF documentation page.
wafaa wrote:
> how to make instance model from ecore file
>
> I have an ecore metamodel called owl.ecore, and I want to create
> models where classes belong to the metamodelEcore file
>
Hello,
but what is the purpose of creating a Dynamic Instance of an EClass, instead of generating code from the model?
Thank you,
Daniel
]]>Daniel Tahin2014-04-09T21:56:42-00:00Re: how to make instance model from ecore file
https://www.eclipse.org/forums/index.php/mv/msg/197083/1290477/#msg_1290477
Completely different concepts.
Code generation gives you a Java implementation of the metamodel. You
edit the *.ecore metamodel with the Ecore Model editor.
A dynamic instance gives you a model conforming to the metamodel. You
edit the *.xmi model with the Reflective Ecore Model Editor, or *.xxxx
model in a nested Eclipse after generating an XXXX editor from your
XXXX.ecore metamodel.
Regards
Ed Willink
On 09/04/2014 22:56, Daniel Tahin wrote:
> Ed Merks wrote on Mon, 24 May 2010 08:36
>> Wafaa,
>>
>> To do this dynamically, you can use Create Dynamic Instance from an
>> EClass' context menu. Otherwise, follow some of the basic tutorials
>> on the EMF documentation page.
>>
>> wafaa wrote:
>> > how to make instance model from ecore file
>> >
>> > I have an ecore metamodel called owl.ecore, and I want to create >
>> models where classes belong to the metamodelEcore file
>> >
>
>
>
> Hello,
>
> but what is the purpose of creating a Dynamic Instance of an EClass,
> instead of generating code from the model?
>
> Thank you,
> Daniel
>]]>Ed Willink2014-04-10T06:44:21-00:00