scoping.ImportURIScopingFragment in new generator? [message #1760330] |
Tue, 25 April 2017 21:51  |
Eclipse User |
|
|
|
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: Tue, 25 April 2017 21:52] by Moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: scoping.ImportURIScopingFragment in new generator? [message #1760601 is a reply to message #1760586] |
Fri, 28 April 2017 14:41  |
Eclipse User |
|
|
|
I think I just got it working. Somehow in my IpxUiModule, I had overridden an extra method: I was supposed to just @Override configureLanguageSpecificURIEditorOpener, but by accident I was also @Overridding configure(Binder binder) {. Once I commented out that extra override, it worked!
Thanks so much for your helpful blog and your response to others on similar threads.
[Updated on: Fri, 28 April 2017 16:18] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03467 seconds