grammar for ecore metamodel [message #1235063] |
Thu, 23 January 2014 08:32  |
Eclipse User |
|
|
|
I'm looking for a complete grammar for the ecore metamodel. Would be great to edit ecore models with a DSL. I need to create an ecore model, not a metamodel that is instantiated at a later time. Does there exist such a project?
I want to use the ecore models this way:
Registry::INSTANCE.extensionToFactoryMap.put("ecore", new EcoreResourceFactoryImpl)
val classUrl = Generator.classLoader.getResource(modelPath)
val resource = new XMIResourceImpl()
resource.load(file.openStream, new Attributes())
resource.allContents() // this is where the party begins
emfatic (http://www.eclipse.org/epsilon/doc/articles/emfatic/) is an interesting solution but the transformation from-to ecore was not always performed when I tried.
Thanks,
Andras
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.27029 seconds