Bug 356608 - [Techno:XML] Generation: need for dedicated support
Summary: [Techno:XML] Generation: need for dedicated support
Status: NEW
Alias: None
Product: MoDisco
Classification: Modeling
Component: Technologies (show other bugs)
Version: 0.10.0   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-02 10:43 EDT by Hugo Bruneliere CLA
Modified: 2011-09-26 10:53 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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