scoping.ImportURIScopingFragment in new generator? [message #1760330] |
Wed, 26 April 2017 01:51 |
Brandon Lewis Messages: 268 Registered: May 2012 |
Senior Member |
|
|
I need to add an import statement to my grammar so I can import an ecore model and make cross references to it from my DSL. Google results show I need to use the importURI "magic string" and include scoping.ImportURIScopingFragment in my generator.
I have made "old generator" examples work at home (modifying fowler DSL), now I'm ready to take my experience into the real world at work... but.... (record needle scratching sound)
1) I can't figure out how to do fragment = scoping.ImportURIScopingFragement in the new generator. I have imported org.eclipse.xtext.generator.scoping, the old one, but it doesn't seem to resolve.
2) The Xtext book doesn't mention importURI anywhere. Either version.
3) I can't seem to find a search hit on importURI on the online Xtext documentation
4) Docs I've been able to find on the new generator say "use autocomplete to find your way".
So I'm left with a "new generator" project that doesn't understand the magic importURI string in my grammar.
How does one do this? I'd rather the answer not be "convert your entire project to the old generator".
Is there a new way to do this in 2.10 and I'm just doing it wrong?
[Updated on: Wed, 26 April 2017 01:52] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05475 seconds