Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to skip node in object graph
How to skip node in object graph [message #763186] Fri, 09 December 2011 10:09 Go to next message
Vishal seth is currently offline Vishal sethFriend
Messages: 32
Registered: April 2010
Member
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 10:16 Go to previous message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

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
Previous Topic:a problem while labeling the link mapping
Next Topic:[GMF] Custom Figure - Label Positioning
Goto Forum:
  


Current Time: Thu Apr 25 05:18:51 GMT 2024

Powered by FUDForum. Page generated in 0.04813 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top