Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » how to make instance model from ecore file
how to make instance model from ecore file [message #628455] Sun, 23 May 2010 15:07 Go to next message
wafaa is currently offline wafaa
Messages: 163
Registered: January 2010
Location: Egypt
Senior Member
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
Re: how to make instance model from ecore file [message #628456 is a reply to message #628455] Mon, 24 May 2010 08:36 Go to previous messageGo to next message
Ed Merks is currently offline Ed Merks
Messages: 26013
Registered: July 2009
Senior Member
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
>
Re: how to make instance model from ecore file [message #1290049 is a reply to message #628456] Wed, 09 April 2014 17:56 Go to previous messageGo to next message
Daniel Tahin is currently offline Daniel Tahin
Messages: 27
Registered: July 2013
Junior Member
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
Re: how to make instance model from ecore file [message #1290477 is a reply to message #1290049] Thu, 10 April 2014 02:44 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4035
Registered: July 2009
Senior Member
Hi

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
>
Previous Topic:Retrieving applied stereotypes
Next Topic:How design diagrams in Eclipse Classic
Goto Forum:
  


Current Time: Thu Aug 28 11:29:59 EDT 2014

Powered by FUDForum. Page generated in 0.05643 seconds