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

Thanks a lot, Frank! :)

Best Regards,
Steven

*******************************************************************
Steven (Shunxiang) Yang,     杨顺祥
Business Integration, IBM China Research Lab
4F, HaoHai, #7, 5th Street, Shangdi, Beijing, 100085, China
TEL:    86-10-62986677 ext. 545
T/L:    9056677 ext. 545
FAX:    86-10-82899634
E-mail: yangsx@xxxxxxxxxx
*******************************************************************
-- If you don't stretch, you don't know where the edge is. --



                                                                                                                                       
                      Frank                                                                                                            
                      Budinsky/Toronto/        To:       emf-dev@xxxxxxxxxxx                                                           
                      IBM@IBMCA                cc:       emf-dev@xxxxxxxxxxx, emf-dev-admin@xxxxxxxxxxx                                
                      Sent by:                 Subject:  Re: [emf-dev] Questions about EMF's support for parent-child relationship     
                      emf-dev-admin@ecl                                                                                                
                      ipse.org                                                                                                         
                                                                                                                                       
                                                                                                                                       
                      07/24/2003 04:38                                                                                                 
                      AM                                                                                                               
                      Please respond to                                                                                                
                      emf-dev                                                                                                          
                                                                                                                                       




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



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


Back to the top