Hi,
theoretically, attaching to any EMF instance model is possible. We are currently migrating our issues from GitHub over to Eclipse, but if you feel like it, feel free to create a feature request to support targeting EMF instance models through a, say, Plugin Spy-like generic interface.
Xtext, however, is unfortunately problematic due to two reasons:
- the EMF instance model built by Xtext is rebuilt almost from scratch each time you save, so using IncQuery on it does not have much benefit in terms of performance
- if you build your Xtext DSL on top of Xbase (as we do), then the resulting EMF instance model will not behave in an API-correct way w.r.t. to sending change notifications and materialize a *lot* of external resources from the Java classpath. We have experimented with this before and found that this scenario is basically not supported at the moment.
regards
Istvan