|
Re: How to create automatically children nodes [message #235531 is a reply to message #235517] |
Tue, 07 July 2009 12:41 |
Eclipse User |
|
|
|
Originally posted by: aurelien.pupier.esial.net
Daniel a écrit :
> Hello,
>
> My model contains an object A, with a reference to an object B and an
> object C.
> I would like to create a new object B and new object C automatically
> with references when I only click on the creation tool object A.
>
> Is it possible? Should I look on emf, to see if it is possible to create
> children automatically?
>
> Thanks
>
Hi Daniel,
It is possible.
Use Feature seq initializer in your gmf map under the node mapping
|
|
|
|
Re: How to create automatically children nodes [message #235545 is a reply to message #235538] |
Tue, 07 July 2009 13:26 |
Eclipse User |
|
|
|
Originally posted by: aurelien.pupier.esial.net
Daniel a écrit :
> It looks magic, thanks for your help, but I still have a problem:
> children objects automatically created don't appear on the diagram.
>
> Moreover, I still don't understand the error
>
> 'feature' of 'ReferenceNewElementSpec' must refer to containment
> ecore::EReference
>
> thanks for your help
>
don't know exactly but i think that element miss :
try to have this kind of strucure :
Feature seq initializer
- Reference New element spec
- Feature sew initializer
- Feature value spec
- Value Expression
and fill for each level the feature properties
|
|
|
|
Powered by
FUDForum. Page generated in 0.02488 seconds