mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 08:48:55 +00:00
[cp-tests] classpath validation tests, checkClassPath for XtendFile
This commit is contained in:
parent
4cfeedb02c
commit
ecd77565d6
1 changed files with 4 additions and 4 deletions
|
@ -67,7 +67,7 @@ public class ResourceValidatorImpl implements IResourceValidator {
|
|||
resolveProxies(resource, monitor);
|
||||
if (monitor.isCanceled())
|
||||
return null;
|
||||
|
||||
|
||||
final List<Issue> result = Lists.newArrayListWithExpectedSize(resource.getErrors().size()
|
||||
+ resource.getWarnings().size());
|
||||
try {
|
||||
|
@ -80,19 +80,19 @@ public class ResourceValidatorImpl implements IResourceValidator {
|
|||
return null;
|
||||
issueFromXtextResourceDiagnostic(resource.getErrors().get(i), Severity.ERROR, acceptor);
|
||||
}
|
||||
|
||||
|
||||
for (int i = 0; i < resource.getWarnings().size(); i++) {
|
||||
if (monitor.isCanceled())
|
||||
return null;
|
||||
issueFromXtextResourceDiagnostic(resource.getWarnings().get(i), Severity.WARNING, acceptor);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (monitor.isCanceled())
|
||||
return null;
|
||||
boolean syntaxDiagFail = !result.isEmpty();
|
||||
logCheckStatus(resource, syntaxDiagFail, "Syntax");
|
||||
|
||||
|
||||
// Validation errors
|
||||
// Collect validator diagnostics
|
||||
validate(resource, mode, monitor, acceptor);
|
||||
|
|
Loading…
Reference in a new issue