| [news.eclipse.platform.swt] Re: Automatic XML-based GUI generation |
Ali,
Comments below.
Nope. You can define you model in any number of different ways. No matter how you start, the instances can be serialized as XML.Ed,
Thanks for reminding me about EMF. A couple of points: First, I do not need to necessarily use the xml schema approach for this, do I?
I only need the EMF(GMF) editor to edit my xml file in a nice way.If you don't have an existing syntax in mind, then you can focus on defining a nice model. The Ecore Tools project in EMFT has a very nice graphical editor that lets you define a model using a class diagram just like it was UML.
If you do have an existing syntax is mind, it's probably important you describe that syntax with a schema to ensure that EMF will serialize exactly according to that exported format.
Second, the xml files originally hold the settings of a c++ library and eclipse is used a GUI in this context. When the EMF(GMF) editor opens this already existing xml file and modifies it, given the right EMF model properties, would it also write it back without messing up with things so that the file can be readable by the c++ library?
-Ali
Ed Merks wrote:Ali,
Maybe EMF would serve that purpose:
<http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.emf.doc/tutorials/xlibmod/xlibmod.html>
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.emf.doc/tutorials/xlibmod/xlibmod.html
With GMF you could even generate a graphical editor for your model...
Ali wrote:Hi,
Is there any way in SWT to automatically generate some GUI based on XML? In fact, I am looking for a 'graphical' way of editing XML files in the same way that one can edit 'properties' values of an object.
On top of this, is there any way of loading an XML document to an eclipse properties view, editing and saving it back?