Package org.eclipse.xtext.validation

Examples of org.eclipse.xtext.validation.IResourceValidator.validate()


    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>() {
View Full Code Here


        public boolean isCanceled() {
          return ticker.isCanceled();
        }
      };

      List<Issue> issues = rv.validate(r, CheckMode.ALL, cancelMonitor);
      for(Issue issue : issues) {
        addIssueDiagnostic(diagnostics, issue, f, f.getParentFile());
      }
      worked(ticker, 1);
      ppRunner.tearDown();
View Full Code Here

        public boolean isCanceled() {
          return ticker.isCanceled();
        }
      };

      List<Issue> issues = validator.validate(r.getValue(), CheckMode.ALL, cancelMonitor);
      for(Issue issue : issues) {
        addIssueDiagnostic(diagnostics, issue, f, root);
      }
    }
    // // Debug stuff
View Full Code Here

        public boolean isCanceled() {
          return ticker.isCanceled();
        }
      };

      List<Issue> issues = rv.validate(r, CheckMode.ALL, cancelMonitor);
      worked(ticker, 1);
      for(Issue issue : issues) {
        addIssueDiagnostic(diagnostics, issue, f, root);
      }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.