|
|
Re: Parent and Child Nodes on GMF diagram [message #171881 is a reply to message #171748] |
Fri, 08 February 2008 12:51 |
Neeraj Bhusare Messages: 177 Registered: July 2009 Location: Canada |
Senior Member |
|
|
Hello Noor,
Please find pointers below that may help you.
1. Make sure that the container/parent(Rectangle) in the model holds a
containment relation with itself and also with child elements(say
circle).
2. In the .gmfmap model, you need to add a child references to rectangle
and
also to the circle, and add node mappings respectively.
3. In the .gmfgen model, for the rectangle(parent) node, change the child
node
property and add rectangle(parent) and circle(child)as child nodes.
Well, with the above steps you will be able have nested parent and also
add child elements. The problem here is you wont be able to move child
nodes dropped in the 'nested_parent', though the List layout property of
the compartment is set. May be some one may like to point out the changes
that need to be done to enable the movement of child elements in the
nested_parent.
Hope this helps.
Noor wrote:
> Hi All,
> I have one parent node and others child nodes on pallet.I can place parent
> node on diagram and also can place child nodes on parent node. parent and
> children have custom figures(SVG format).
> I want to place the parent node within the parent node(parent node as a
> child of parent) and each parent node will contain its children. and also
> children could be place directly to the diagram.
> I tried to add Child Reference(Top Node Refence as its child) in in
> GMFgraph but I receive the following error while generating gmfgen
> Containment Feature must be owned by Domain Meta Element or its supper
> type of this reference parent Node Mapping
> I am not sure that this approach will work or not.
> Please guide me how can I do it.
> Thanks in advance.
Twitter : @NeerajBhusare
Blog : https://nbhusare.github.io/
Best regards, Neeraj
|
|
|
|
Powered by
FUDForum. Page generated in 0.02952 seconds