|Re: Resolving variables from an external source [message #1732577 is a reply to message #1732575]
||Wed, 18 May 2016 10:57
| Jan Koehnlein
Registered: July 2009
Do you really want to cross-reference data you fetch live from the internet? Scoping, linking etc. are live services, i.e. they are called on user actions like keystrokes and should not have to deal with long running operations. Imagine content assist blocking because of a temporary internet problem...|
Nevertheless, in order to refer to elements from non-Xtext based models, you have to register an implementation for the minimum infrastructure that Xtext needs. This is as Karsten pointed out mainly about index entries for the referable elements.
If you don't want to deep dive into the innards of Xtext, you could also build an Xtext grammar that is able to parse these files. I'd not be suprised if there already was an Xtext grammar for JSON.
Get professional support from the Xtext committers at www.typefox.io
Powered by FUDForum
. Page generated in 0.01891 seconds