| How to skip node in object graph [message #763186] |
Fri, 09 December 2011 05:09  |
Eclipse User |
|
|
|
Hi,
Not sure how to to go about defining gmfmap for the following scenario:
Node
|
|
|
|
|
----Connector
|
|
|
|
|
--------LeafNode
I would defined Node as a TopReferenceNode, skip Connector while representing & would like to directly add LeafNode as children of Node.
Secondly show connector as a link mapping.
Tried to search but did not found something similar. Any hints/pointers should suffice.
Thanks
Vishal
|
|
|
| Re: How to skip node in object graph [message #763190 is a reply to message #763186] |
Fri, 09 December 2011 05:16  |
Eclipse User |
|
|
|
AFAIK, GMF Tooling won't allow you to create complex dereferencing (ie
maing a child node for something that is not a direct child). That's an
important limitation, and you should open a feature request for that.
I suggest you to generate the code with a simple childhood relationship
and taks a look at the generated EditParts. You'll find out the place
where dereferencing happens, and you could maybe replace it by a more
complex piece of code.
If you work on that, please share your conclusions on the feature
request, it is a step towards integrating support for such relationship
in GMF Tooling.
Regards,
--
http://mickaelistria.wordpress.com
http://twitter.com/#!/mickaelistria
http://www.petalslink.com
|
|
|
Powered by
FUDForum. Page generated in 0.02880 seconds