Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[emf-dev] Questions about EMF's support for parent-child relationship

Dear all

I'm creating a meta model using Rose, and using EMF to generate the default
editor. I met two problems:

1. Do I need to create a root meta class in the rose model, whose instance
will be the root for all the elements in the instance model created using
the generated editor? If there's no such a root meta class, then the
elements created in the instance model can not be organized in a tree, and
can not be connected with one another.

2. Do I need to connect 'parent' meta class and 'child' meta class using
Aggregation, in the meta model? If no, then in the generated editor, there
will be no Context Menu Item of the 'parent' meta class instance to create
instances of the 'child' meta class.

Thanks!

Best Regards,
Steven





Back to the top