Skip to main content



      Home
Home » Modeling » EMF » Loading an Ecore meta-model from a model instance using "Load Resource.." (II)
Loading an Ecore meta-model from a model instance using "Load Resource.." (II) [message #854952] Tue, 24 April 2012 07:43 Go to next message
Eclipse UserFriend
Ed, maybe this picture could help me to explain.

A.ecore and B.ecore are meta-models, and A1.xmi is a model instance which conforms to A.ecore.

For A.ecore, the Ecore.ecore has been manually imported whereas in A1.xmi it appears automatically. Here, in A1.xmi, B.ecore has also been manually loaded.

In the combo box I expected to find all available instances of EClass, I mean, all classes in Ecore (the EClass itself, but also EReference, EAttribute, EPackage, etc.) + all classes in A.ecore + (in particular) all classes in B.ecore, to establish the reference "Pointed_Class" to B_Class
Re: Loading an Ecore meta-model from a model instance using "Load Resource.." (II [message #854971 is a reply to message #854952] Tue, 24 April 2012 07:59 Go to previous message
Eclipse UserFriend
Cesar,

The diagram doesn't change my answer about the problem of using a
dynamic model for Ecore.ecore yet wanting instances that conform to the
generated Ecore model to conform to it. As I suggested, if you generate
a model for A.ecore, your generated editor will be able to edit A.xmi
instances and then what you're trying to do (reference EClasses in
B.ecore) will work.


On 24/04/2012 1:43 PM, Cesar Caves wrote:
> Ed, maybe this picture could help me to explain.
>
> A.ecore and B.ecore are meta-models, and A1.xmi is a model instance which conforms to A.ecore.
>
> For A.ecore, the Ecore.ecore has been manually imported whereas in A1.xmi it appears automatically. Here, in A1.xmi, B.ecore has also been manually loaded.
>
> In the combo box I expected to find all available instances of EClass, I mean, all classes in Ecore (the EClass itself, but also EReference, EAttribute, EPackage, etc.) + all classes in A.ecore + (in particular) all classes in B.ecore, to establish the reference "Pointed_Class" to B_Class
Previous Topic:[CDO] Server crash, No type found
Next Topic:Loading an Ecore meta-model from a model instance using "Load Resource.."
Goto Forum:
  


Current Time: Tue Sep 23 18:43:08 EDT 2025

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

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

Back to the top