modeltype ECORE "strict" uses ecore('http://www.eclipse.org/emf/2002/Ecore'); | |
transformation Ecore2EcoreExt(inout inplace : ECORE); | |
main() { | |
var inoutPackage := inplace.rootObjects()![EPackage]; | |
inoutPackage.name := inoutPackage.name + "_Ecore2EcoreExt"; | |
object inoutPackage : EPackage { | |
eClassifiers += object EClass {}; | |
} | |
} |