throw new IllegalStateException();
}
protected List<Issue> validate(EObject model) {
IResourceValidator validator = ((XtextResource) model.eResource()).getResourceServiceProvider().getResourceValidator();
return validator.validate(model.eResource(), CheckMode.ALL, CancelIndicator.NullImpl);
}
protected Iterable<Issue> getValidationErrors(final EObject model) {
final List<Issue> validate = validate(model);
Iterable<Issue> issues = filter(validate, new Predicate<Issue>() {