workbench.getProgressService().run(true, true, new IRunnableWithProgress() {
@Override
public void run(final IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
XtextDocument doc = ((ModelQueryLanguageView) view).getEmbeddedEditor().getDocument();
String result = doc.readOnly(new IUnitOfWork<String, XtextResource>() {
@Override
public String exec(XtextResource r) throws Exception {
Model m = (Model) r.getContents().get(0);
return interpret(m, monitor);
}