Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to get the Model Element of an ILayoutNode?
How to get the Model Element of an ILayoutNode? [message #995924] Mon, 31 December 2012 14:32 Go to next message
Jens Schmidt is currently offline Jens Schmidt
Messages: 1
Registered: October 2012
Junior Member
Good day everybody,

i'm creating an editor (obviously) it works all like charm except the layout.
I want to do the layout depending on the Model-Node created with the Factory.
e.g. MetamodellFactory.eINSTANCE.createTankSphericalShape();

More precisely, i have a Map<GMF-Node, Something> and i want to layout depending on the Something in the Map.
So how can i obtain the Model Element from an ILayoutNode (or with)?

Thank you in advance
Jens
Re: How to get the Model Element of an ILayoutNode? [message #997440 is a reply to message #995924] Mon, 07 January 2013 14:27 Go to previous message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi,

there is a method called getNode on ILayoutNode. This returns you the model element in the notation model. You can use this to find the right IGraphicalEdipart in your map.

Ralph
Previous Topic:How to register Connection Edit Part as Drop Target
Next Topic:How to Set Default Grid line style, line color, and "on top"
Goto Forum:
  


Current Time: Thu Oct 23 02:21:16 GMT 2014

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

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