Package net.sourceforge.squirrel_sql.client.session.parser.kernel

Examples of net.sourceforge.squirrel_sql.client.session.parser.kernel.ErrorInfo


   public boolean isError(int offset, int len)
   {
      //System.out.println("Error: offset = " + offset + " len = " + len);
      for (int i = 0; i < _currentErrorInfos.size(); i++)
      {
         ErrorInfo errInf = _currentErrorInfos.elementAt(i);

         if(offset <= errInf.beginPos && errInf.endPos <= offset + len)
         {
            return true;
         }
View Full Code Here


      ////////////////////////////////////////////////////////////////////////////////


      for (int i = 0; i < _currentErrorInfos.size(); i++)
      {
         ErrorInfo errInf = _currentErrorInfos.elementAt(i);

//         byte[] bytes = _editorPane.getText().getBytes();
//         System.out.println("*********************************************** " + absolutePosition);
//         System.out.print(new String(bytes, 0, errInf.beginPos));
//         System.out.print(">" + new String(bytes, errInf.beginPos, errInf.endPos + 1  - errInf.beginPos) + "<");
View Full Code Here

            color(colBegin, colLen, false, null);
         }

         for (int i = 0; i < _oldErrorInfos.size(); i++)
         {
            ErrorInfo errorInfo = _oldErrorInfos.elementAt(i);
            int colBegin = Math.max(errorInfo.beginPos - heuristicDist, 0);
            int colLen = Math.min(errorInfo.endPos - errorInfo.beginPos + 2*heuristicDist, getDocument().getLength() - colBegin);
            color(colBegin, colLen, false, null);
         }
      }
View Full Code Here

   {
      int pos = viewToModel(event.getPoint());

      for (int i = 0; i < _currentErrorInfos.size(); i++)
      {
         ErrorInfo errInfo = _currentErrorInfos.elementAt(i);

         if(errInfo.beginPos-1 <= pos && pos <= errInfo.endPos)
         {
            return errInfo.message;
         }
View Full Code Here

TOP

Related Classes of net.sourceforge.squirrel_sql.client.session.parser.kernel.ErrorInfo

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.