Access location of non-dsl files in workspace [message #1796523] |
Mon, 15 October 2018 12:49  |
Eclipse User |
|
|
|
Hello,
I am working on a DSL that queries EMF model contents.
As part of the DSL grammar, a user indicates the paths of the metamodel and model files that will be employed in the queries, such as:
domainModel "models/dummy.ecore"
domainModelInstance "models/dummy.model"
<queries over the model here>
Being "models" a folder in the current project where the dsl files are defined.
I am having problems finding the absolute path or platform URI to load these resources to make them available for the dsl components (e.g. the validator would need the "dummy.ecore" metamodel to check the correctness of the query).
I do not know what is the preferred way to access these files, or if the usage of external files inside the functionality of dsl components is a supported or common feature in Xtext (or even desirable).
Thank you very much,
Alfonso
|
|
|
|
Powered by
FUDForum. Page generated in 1.31031 seconds