Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 356608

Summary: [Techno:XML] Generation: need for dedicated support
Product: [Modeling] MoDisco Reporter: Hugo Bruneliere <hugo.bruneliere>
Component: TechnologiesAssignee: Project Inbox <modisco.web-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P5 CC: fabien.giquel, gdupe
Version: 0.10.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Hugo Bruneliere CLA 2011-09-02 10:43:20 EDT
It would be really useful to provide the generator corresponding to the MoDisco XML metamodel (http://wiki.eclipse.org/MoDisco/Components/XML).
Comment 1 Fabien Giquel CLA 2011-09-02 12:43:33 EDT
The generator exists. That is not an Acceleo module as for other model kinds :

the org.eclipse.gmt.modisco.xml component brings some Resource.Factory & Resource implementations which allow save action once the model has been modified.

The org.eclipse.gmt.modisco.xml.discoverer only uses this specific Resource.Factory to provide the GenericXMLResourceImpl instance.

Well, may be it is not obvious in documentation. There is one indication : "The XML content can be serialized back since the model elements are contained in a dedicated org.eclipse.emf.ecore.resource.Resource implementation. "

Or may be you expect some ui shortcut action for generating from workspace...
Comment 2 Hugo Bruneliere CLA 2011-09-05 04:01:01 EDT
Hi Fabien,

Thanks for the quick answer :-)
I was initially thinking about a similar support as the one for Java.
To this intent, I would propose the available XML serialization support (which is already available) to be explicitly mentioned in the documentation as a "XML generator".

Also, a contextual action (from a XML model) and a "generation" launch configuration would allow the easy integration of XML generation as part of a MoDisco workflows (i.e. chains of discoveries and transformations), as it can already been done for Java.

Hugo