Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Get All the Information in the Diagram
Get All the Information in the Diagram [message #690482] Wed, 29 June 2011 11:19 Go to next message
Eclipse UserFriend
Hi, after lancing the GMF project, I can put some Node and Arc in the canvas to create the model, but HOW could I get all their attributes(the name of class, position, attributions...)?

I have got them successfully in the handleNotificationEvent, but that function will be triggered only when some CHANGES are detected. But HOW could I got all the informations by code?

Thanks

Vincent
Re: Get All the Information in the Diagram [message #693008 is a reply to message #690482] Tue, 05 July 2011 11:59 Go to previous message
Eclipse UserFriend
Hi Vincent,

maybe you can take a look at the generated [XXX]CreateCommand in [YourDiagramPlugin].edit.commands package. Or, if you start from diagram selection, you have to do something like selectedEditPart.resolveSemanticElement() to investigate the model, where the selectedEditPart itself gives you infomation about position and layout.

HTH, bye

Giovanni
Previous Topic:Remove menu for creating child nodes in the parent node
Next Topic:Using XYLayout
Goto Forum:
  


Current Time: Mon Jul 07 11:18:54 EDT 2025

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

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

Back to the top