|Implicitly Import instances of external EMF model [message #1113027]
||Fri, 20 September 2013 10:36
| Julian Wefers
Registered: June 2013
my case is, that every file of my DSL should have implicit access to our data model, which exists as ecore model. Importing these models in the grammar language works, referencing the types works as well.
My question is now: how can i let scripts, written in my dsl have scoping access to the concrete instances of our meta datamodel. we have persisted these with the XMI mechanism of EMF. So, basically lots of Resource files, which can be time-variant
So, i have my Xtext grammar, which references types from an ecore metamodel. i now want to reference concrete instances of the EMF metamodel (which lie in XMI files) to reference from my concrete DSL script.
I'm not sure, whether to somehow use the GlobalScopeProvider, as my Resources should not be hard-coded in the model.
I thought about building some sort of Wrapper around the types directory to provice IResourceDescriptions for the Scoping but this somehow seems too complicated?
Can you give any adive?
Powered by FUDForum
. Page generated in 0.02003 seconds