Package org.eclipse.jst.jsp.core.jspel

Examples of org.eclipse.jst.jsp.core.jspel.ELProblem


        Position pos = null;
        problemStartOffset =  contentStart + curTok.beginColumn;
        problemEndOffset = contentStart + curTok.endColumn;
       
        pos = new Position(problemStartOffset, problemEndOffset - problemStartOffset + 1);
        elProblems.add(new ELProblem(sev, pos, e.getLocalizedMessage()));
      }
    } catch (TokenMgrError te) {
      int sev = getProblemSeverity(JSPCorePreferenceNames.VALIDATION_EL_LEXER, getScopeContexts(document));
      if (sev != ValidationMessage.IGNORE) {
        Position pos = new Position(contentStart, contentLength);
        elProblems.add(new ELProblem(sev, pos, JSPCoreMessages.JSPEL_Token));
      }
    }
    return elProblems;
  }
View Full Code Here


      final int problemOffset = fContentStart + node.getFirstToken().beginColumn - 1;
      final int problemLength = node.getLastToken().endColumn - 1;
     
      //could not find function translation so report error
      if(!node.getFullFunctionName().startsWith("prop:")) //In tapestry environment, we usually use prop: expression to get attributes, these are not functions  
        fELProblems.add(new ELProblem(new Position(problemOffset, problemLength), NLS.bind(JSPCoreMessages.JSPELTranslator_0, node.getFullFunctionName())));
     
      //error message to be injected into translation purely for debugging purposes
      String errorMsg = "\"Could not find function translation for: " + node.getFullFunctionName() + "\""; //$NON-NLS-1$ //$NON-NLS-2$
      append(errorMsg);
     }
View Full Code Here

      Position pos = null;
      problemStartOffset =  contentStart + curTok.beginColumn;
      problemEndOffset = contentStart + curTok.endColumn;
     
      pos = new Position(problemStartOffset, problemEndOffset - problemStartOffset + 1);
      elProblems.add(new ELProblem(pos, e.getLocalizedMessage()));
    } catch (TokenMgrError te) {
      Position pos = new Position(contentStart, contentLength);
      elProblems.add(new ELProblem(pos, JSPCoreMessages.JSPEL_Token));
    }
    return elProblems;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jst.jsp.core.jspel.ELProblem

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.