Use of multiple meta-models

This example describe the use of multiple meta-models in Eclipse. We have used 2 meta-models MMA and MMB. MMB reference MMA.

UseOfMultipleMM 01.png

We have created one EMF model (*.genmodel) referencing all metamodels. With this EMF model, we can generate tree editors for the two metamodels.

UseOfMultipleMM 02.png

UseOfMultipleMM 03.png

It's possible to have Acceleo templates on each metamodel.

NB : It's not possible in the same template to create script for different meta-classes contained in different meta-models, but it's possible to read it.

UseOfMultipleMM 04.png

It's too possible to create graphical modeler, with Topcased, to represent elements of MMA and MMB. The diagram configurator take as parameter an EMF model (*.genmodel). So, if we give the EMF model referencing all metamodels, it's OK.

We have tried to realize ATL transformation on each metamodel.

UseOfMultipleMM 05.png