vm.getCompilerErrors().iterator(file.getAbsolutePath());
Document document = result.getSnapshot().getSource().getDocument(false);
List<ErrorDescription> nbErrors = new ArrayList<ErrorDescription>();
while(errors.hasNext()) {
ErrorDescription errorDescription;
CompilerError error = errors.next();
errorDescription = ErrorDescriptionFactory.createErrorDescription(
Severity.ERROR, error.getError(),
document,
error.getLineNumber());
nbErrors.add(errorDescription);
}
HintsController.setErrors(document, "quorum", nbErrors);
} catch (Exception ex) { //there's really no point to logging these
}