Skip to main content


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 19:07 Go to next message
wafaa is currently offline wafaaFriend
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 12:36 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
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
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: how to make instance model from ecore file [message #1290049 is a reply to message #628456] Wed, 09 April 2014 21:56 Go to previous messageGo to next message
Daniel Tahin is currently offline Daniel TahinFriend
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 06:44 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
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: Fri Mar 29 12:11:30 GMT 2024

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

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

Back to the top