multiple top level entities in instance model in EMF [message #395453] |
Thu, 08 September 2005 09:55  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.02651 seconds