Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Get nodes programmatically
Get nodes programmatically [message #208492] Tue, 14 October 2008 09:01 Go to next message
Eclipse UserFriend
Originally posted by: andrew.iaes.ru

Hi!
I tried to export diagramm to db, but do not inderstand how to get all
nodes on the diagramm programmatically. (For example user paint
rectangle and circle and click on popup menu --ExportToDB--).
I need to get this nodes and its properties such as xy layout.
In GMF_tutorial_3 i see only how to create node.
Thanks.
Re: Get nodes programmatically [message #208715 is a reply to message #208492] Wed, 15 October 2008 11:26 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Andrei,

All diagam content is available from org.eclipse.gmf.runtime.notation.Diagram
instance. See:
Diagram.getChildren()
Diagram.getEdges()

use org.eclipse.gmf.runtime.notation.View.getElement() to access domain model
element associated with current view.

-----------------
Alex Shatalin
Previous Topic:Problem of infinite loop at element creation
Next Topic:NoClassDefFoundError:GenParserImplementation
Goto Forum:
  


Current Time: Tue May 11 11:40:50 GMT 2021

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

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

Back to the top