Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Doubt regarding getting values from the gmf figures
Doubt regarding getting values from the gmf figures [message #215083] Tue, 13 January 2009 02:05 Go to next message
Eclipse UserFriend
Hello All,

The application I am making consists of a number of domain model elements
for which I am creating the corresponding GMF entities/nodes. The user
will set the attributes of the a specific GMF entity by clicking it and
selecting its properties editor and save it which works great. The final
output of my GMF application is when I right click my editor and select a
menu item named "Create source" I want to read the data present in the GMF
entities, their attributes and values and group them and write it to an
XML file say source.xml based on a XSD definition I have. Can Some one
point to me how to do this? Is there any existing feature in GMF to do
that?

I hope to hear from someone.

Thanks in advance.

Steve
Re: Doubt regarding getting values from the gmf figures [message #215105 is a reply to message #215083] Tue, 13 January 2009 06:36 Go to previous message
Eclipse UserFriend
Hello Steve,

If you will use this XSD file to create underlying domain (EMF-)model then
generated diagram, editor will save all the underlying domain model information
into the XML file in accordance with this XSD document (thanks to EMF). So
i think you should move in that directions (revord domain model to make it
based on XSD and get serialization for free on pressing Save).

-----------------
Alex Shatalin
Previous Topic:Elements extended from UML
Next Topic:Create element in DiagramEditPart programmatically
Goto Forum:
  


Current Time: Sun Jun 08 14:17:34 EDT 2025

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

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

Back to the top