Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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
Eclipse UserFriend
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: Tue Jul 15 20:16:37 EDT 2025

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

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

Back to the top