Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 07:05 Go to next message
Steve is currently offline SteveFriend
Messages: 24
Registered: July 2009
Junior Member
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 11:36 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
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: Wed Apr 24 18:22:46 GMT 2024

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

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

Back to the top