|Problem with classpath uri imports [message #775289]
||Thu, 05 January 2012 18:20
| Thomas Ponweiser
Registered: January 2012
In order to automatically import some built-in definitions for my DSL (see my original problem), I've been trying to follow the advise of Meinte Boersma to use a custom GlobalScopeProvider and overwrite the getImportedUris() method as described in the Itemis blog.
It states that I should create an URI for the resourcefile containing the needed definitions with:
My resourcefile is located in the "src" folder of my Xtext main project in the java package "ao.explorer.dsl" and is named "builtin.aodsl".
I guess that my adapted code should then look like this:
Anyway, my resourcfile is not found by the Xtext framework but is definitely in the classpath (it can be opened using ClassLoader.getResourceAsStream()). I guess that it simply has to be made visible somehow. How do I do that?
[Updated on: Tue, 10 January 2012 10:34]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01868 seconds