eclipse-emfacceleomda

running ACCELEO from ACCELEO on the DSL contained in model elements


I have a UML activity with OpaqueActions containing a DSL. The DSL grammar is expressed by means of XText thus there is an EMF ECORE model and editor for it. I have an ACCELEO M2T transformation transforming UML activities in text and I'd like to trigger (from such transformation) another transformation (from the DSL meta-model to text) providing as input the DSL containing in the opaque actions of the activity. Is there any way to easily do that?


Solution

  • You can create two generators, one for your UML transformation and the second one for your DSL and call the first one from the second one once you encounter your DSL elements while navigating in your UML model.