Package org.rstudio.studio.client.common.compile

Examples of org.rstudio.studio.client.common.compile.CompileError


                                 CompileErrorList.AUTO_SELECT_FIRST_ERROR :
                                 CompileErrorList.AUTO_SELECT_NONE);
           
            if (uiPrefs_.navigateToBuildError().getValue())
            {
               CompileError error = CompileError.getFirstError(event.getErrors());
               if (error != null)
               {
                  fileTypeRegistry_.editFile(
                    FileSystemItem.createFile(error.getPath()),
                    FilePosition.create(error.getLine(), error.getColumn()),
                    true);
               }
            }
         }
      });
View Full Code Here


      view_.showResults(state);
     
      // navigate to the first error
      if (uiPrefs_.navigateToBuildError().getValue())
      {
         CompileError error = CompileError.getFirstError(state.getErrors());
         if (error != null)
         {
            fileTypeRegistry_.editFile(
              FileSystemItem.createFile(error.getPath()),
              FilePosition.create(error.getLine(), error.getColumn()),
              true);
         }
      }
     
   }
View Full Code Here

      boolean showFileHeaders = false;
      ArrayList<CompileError> errorList = new ArrayList<CompileError>();
      int firstErrorIndex = -1;
      for (int i=0; i<errors.length(); i++)
      {
         CompileError error = errors.get(i);
         if (firstErrorIndex == -1 && error.getType() == CompileError.ERROR)
            firstErrorIndex = i;
        
         if (!error.getPath().equals(targetFile))
            showFileHeaders = true;
        
         errorList.add(error);
      }
View Full Code Here

TOP

Related Classes of org.rstudio.studio.client.common.compile.CompileError

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.