Skip to main content

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

Steven,

1. Yes, generally you create a root model class to aggregate the classes in
you model which you want to structure in a tree. See the library tutorial,
for example.
2. Yes. If you don't, you'll need to do a lot of hand customization to the
generated code.

In the future, please post these kinds of questions to the emf newsgroup,
instead of this mailing list.

Thanks,
Frank.




                                                                                                                                      
                      Shun Xiang                                                                                                      
                      Yang/China/IBM@IB        To:       emf-dev@xxxxxxxxxxx                                                          
                      MCN                      cc:                                                                                    
                      Sent by:                 Subject:  [emf-dev] Questions about EMF's support for parent-child relationship        
                      emf-dev-admin@ecl                                                                                               
                      ipse.org                                                                                                        
                                                                                                                                      
                                                                                                                                      
                      07/23/2003 06:48                                                                                                
                      AM                                                                                                              
                      Please respond to                                                                                               
                      emf-dev                                                                                                         
                                                                                                                                      
                                                                                                                                      



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



_______________________________________________
emf-dev mailing list
emf-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/emf-dev





Back to the top