Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Diagram File Structure
Diagram File Structure [message #231207] Mon, 25 May 2009 11:01 Go to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Hi all,

We want to create a visual editor for a configuration file which is an
XML file with known structure, so the diagram file created should have
the same structure with our configuration file. Is it possible to do
this with GMF ?

Regards,

Setya
Re: Diagram File Structure [message #231332 is a reply to message #231207] Tue, 26 May 2009 10:45 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Setya,

You can edit exising XML file using generated editor if you have EMF model
created for this file (you can do it by loading XSD).

-----------------
Alex Shatalin
Re: Diagram File Structure [message #231362 is a reply to message #231332] Tue, 26 May 2009 11:26 Go to previous messageGo to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
Hi,

> You can edit exising XML file using generated editor if you have EMF
> model created for this file (you can do it by loading XSD).

Thank you for your response.

We don't have EMF model created for this XML file and I don't understand
what you mean by loading XSD.

Since we're totally new to GMF the only way we know to generate editor
that can produce XML file with the intended structure is by trial &
error. Is there any faster way than this ?


Regards,

Setya
Re: Diagram File Structure [message #231411 is a reply to message #231362] Tue, 26 May 2009 12:14 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Setya,

> We don't have EMF model created for this XML file and I don't
> understand what you mean by loading XSD.
You can create XSD schema for this XML format and then load it to EMF (see
EMF documentation), generate code for model/edit API then you can create
GMF-generated editor dealing with the data saved/loaded into this XML file.

> Since we're totally new to GMF the only way we know to generate editor
> that can produce XML file with the intended structure is by trial &
> error. Is there any faster way than this ?
See http://wiki.eclipse.org/index.php/GMF_Tutorial

-----------------
Alex Shatalin
Previous Topic:Updating property page title bar on name change of the node without reselecting the node
Next Topic:Notification from XtoXMap reference
Goto Forum:
  


Current Time: Fri Mar 29 05:28:27 GMT 2024

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

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

Back to the top