Package org.eclipse.xtext.diagnostics

Examples of org.eclipse.xtext.diagnostics.AbstractDiagnostic


  }

  public ScriptParsingException addDiagnosticErrors(List<Diagnostic> errors) {
    for (Diagnostic emfDiagnosticError : errors) {
      if (emfDiagnosticError instanceof AbstractDiagnostic) {
        AbstractDiagnostic e = (AbstractDiagnostic) emfDiagnosticError;
        this.getErrors().add(new ScriptError(e.getMessage(), e.getLine(), e.getOffset(), e.getLength()));       
      } else if (emfDiagnosticError instanceof ExceptionDiagnostic) {
        ExceptionDiagnostic e = (ExceptionDiagnostic) emfDiagnosticError;
        this.getErrors().add(new ScriptError(e.getMessage(), e.getLine(), e.getOffset(), e.getLength()));       
      } else {
        this.getErrors().add(new ScriptError(emfDiagnosticError.getMessage(), -1, -1, -1));       
      }
    }
    return this;
View Full Code Here

TOP

Related Classes of org.eclipse.xtext.diagnostics.AbstractDiagnostic

Copyright © 2018 www.massapicom. 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.