Package org.eclim.command

Examples of org.eclim.command.Error


    @Override
    public void addError(AuditEvent event)
    {
      errors.add(
          new Error(
            CHECKSTYLE_PREFIX + event.getMessage(),
            event.getFileName().replace('\\', '/'),
            event.getLine(),
            event.getColumn(),
            event.getSeverityLevel() != SeverityLevel.ERROR));
View Full Code Here


        // one day vim might support ability to mark the offending text.
        /*int[] endLineColumn =
          offsets.offsetToLineColumn(problem.getSourceEnd());*/

        errors.add(new Error(
            problem.getMessage(),
            filename,
            lineColumn[0],
            lineColumn[1],
            problem.isWarning()));
View Full Code Here

        String name = entry.getKey();
        String value = entry.getValue().getAsString();
        try{
          preferences.setValue(name, value);
        }catch(IllegalArgumentException iae){
          errors.add(new Error(iae.getMessage(), null, 0, 0));
        }
      }
    }finally{
      IOUtils.closeQuietly(in);
      try{
View Full Code Here

        String path = resource.getLocation().toOSString().replace('\\', '/');
        File file = new File(path);
        if (file.isFile() && file.exists() && offset > 0){
          pos = FileUtils.offsetToLineColumn(path, offset);
        }
        problems.add(new Error(
              message,
              path,
              Math.max(pos[0], line),
              pos[1],
              severity != IMarker.SEVERITY_ERROR));
View Full Code Here

        String name = entry.getKey();
        String value = entry.getValue().getAsString();
        try{
          preferences.setValue(project, name, value);
        }catch(IllegalArgumentException iae){
          errors.add(new Error(iae.getMessage(), null, 0, 0));
        }
      }
    }finally{
      IOUtils.closeQuietly(in);
      try{
View Full Code Here

      int[] position = offsets.offsetToLineColumn(matcher.start());
      line = position[0];
      col = position[1];
    }

    return new Error(status.getMessage(), filename, line, col, false);
  }
View Full Code Here

      String filepath = ProjectUtils.getFilePath(project, file);
      FileOffsets offsets = FileOffsets.compile(filepath);
      ArrayList<Error> errors = new ArrayList<Error>();
      for(IProblem problem : reporter.getProblems()){
        int[] lineColumn = offsets.offsetToLineColumn(problem.getSourceStart());
        errors.add(new Error(
            problem.getMessage(),
            filepath,
            lineColumn[0],
            lineColumn[1],
            problem.isWarning()
View Full Code Here

        line = position[0];
        col = position[1];
      }
    }

    return new Error(status.getMessage(), filename, line, col, false);
  }
View Full Code Here

TOP

Related Classes of org.eclim.command.Error

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.