Package org.destecs.core.parsers

Examples of org.destecs.core.parsers.IError


       
        if (parser.hasErrors())
        {
          for (Object err : parser.getErrors())
          {
            IError e = (IError) err;           
            FileUtility.addMarker(currentDocument.getFile(),  e.getMessage(), e.getLine() == 0 ? currentDocument.getNumberOfLines() : e.getLine()+1,  IMarker.SEVERITY_ERROR);
          }
        }

      } catch (IOException e)
      {
View Full Code Here


    if (parser.hasErrors() && errorHandler != null)
    {
      for (Object err : parser.getErrors())
      {
        IError e = (IError) err;
        errorHandler.addMarker(file, e.getMessage(), e.getLine() + 1, e
            .getCharPositionInLine(), IMarker.SEVERITY_ERROR,
            FileUtility
                .getCharContent(FileUtility.getContent(file))
                .toString());
      }
View Full Code Here

TOP

Related Classes of org.destecs.core.parsers.IError

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.