|How can I autoload default imports from resources [message #932919]
||Thu, 04 October 2012 15:14
| Martin Roob
Registered: October 2012
I'm quite new to Xtext and started writing a grammar that uses namespaces.
I followed the description in blogs.itemis.de/stundzig/archives/795 about Default imports and everything works fine so far.
There is only one problem left: When I add a dsl file in my workspace containing the imported namespace, the editor is able to look up the file by magic and all the cross references are resolved. But I don't want to add a file, I do have the content to be included in a resource in the src-folder of the Xtext-project.
What do I have to do to add this java resource to the "Xtext classpath/resourceset" or however you call it??
In principle, I need some code that does the same as descriped in the blog article for URI Imports, just for namespace imports.
Thanks in advance for any help or hints!
Powered by FUDForum
. Page generated in 0.01590 seconds