Skip to main content



      Home
Home » Modeling » EMF » multiple top level entities in instance model in EMF
multiple top level entities in instance model in EMF [message #395453] Thu, 08 September 2005 09:55 Go to next message
Eclipse UserFriend
Originally posted by: arti_subscribe.rediffmail.com

Hi,

I have created an EMF Project,and defined an ecore model. I then created
an EMF Model of this ecore model (using 'Load from an EMF core model’
option and generated code for it (.edit,.editor).
In the 'Runtime Workbench' I have used the model editor to create an
instance model.
If no association (EReference) is defined as containment, no 'child
objects' are allowed to be created.(On right click 'New Child' option does
not appear)
Does EMF not allow creating multiple top level entities ?

Thanks
Arti
Re: multiple top level entities in instance model in EMF [message #395462 is a reply to message #395453] Thu, 08 September 2005 10:41 Go to previous message
Eclipse UserFriend
Arti,

EMF has no built-in support for creating new children directly as the
root of the resource. Multiple roots are really only supported for XMI
serialization where a "fake" root XMI element is serialized to produce a
valid XML result. Since any object can be a root, there's really no
restrictive list of choices we could offer generically.


Arti wrote:

> Hi,
>
> I have created an EMF Project,and defined an ecore model. I then
> created an EMF Model of this ecore model (using 'Load from an EMF core
> model� option and generated code for it (.edit,.editor).
> In the 'Runtime Workbench' I have used the model editor to create an
> instance model.
> If no association (EReference) is defined as containment, no 'child
> objects' are allowed to be created.(On right click 'New Child' option
> does not appear)
> Does EMF not allow creating multiple top level entities ?
>
> Thanks
> Arti
>
Previous Topic:Handling references treated as strings from an existing .xsd model
Next Topic:How to create deployable plugin of EMF Project
Goto Forum:
  


Current Time: Wed Sep 03 07:12:57 EDT 2025

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

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

Back to the top