Skip to main content

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 SchmidtFriend
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
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 GerbigFriend
Messages: 702
Registered: November 2009
Senior Member

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.

Previous Topic:How to register Connection Edit Part as Drop Target
Next Topic:Search: Someone who creates a model for me
Goto Forum:

Current Time: Tue May 26 21:41:59 GMT 2020

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

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

Back to the top