Package net.sourceforge.processdash.tool.probe

Examples of net.sourceforge.processdash.tool.probe.SizePerItemTable$ParseException


      if (mode == EvaluationMode.DEMO) {
        this.enableOrDisableButtons(queryOrRif);
      }
      return true;
    } else if (e instanceof ParseException) {
      final ParseException pe = (ParseException) e;
      this.displayErrorMessage(pe.getMessage(), false, queryOrRif);

      int line;
      int column;

      // get precise line and column...
      if (pe.currentToken.next == null) {
        line = pe.currentToken.beginLine;
        column = pe.currentToken.beginColumn;
      } else {
        line = pe.currentToken.next.beginLine;
        column = pe.currentToken.next.beginColumn;
      }

      this.setErrorPosition(line, column, queryOrRif);
      if (mode == EvaluationMode.DEMO) {
        this.enableOrDisableButtons(queryOrRif);
      }
      return true;
    } else if(e instanceof lupos.rif.generated.parser.ParseException){
      final lupos.rif.generated.parser.ParseException pe = (lupos.rif.generated.parser.ParseException) e;
      this.displayErrorMessage(pe.getMessage(), false, queryOrRif);

      int line;
      int column;

      // get precise line and column...
View Full Code Here


  public void handleParseError(Throwable t) throws ModificationException {
    int line = 0;
    int column = 0;

    if(t instanceof ParseException) {
      ParseException pe = (ParseException) t;

      // get precise line and column...
      if(pe.currentToken.next == null) {
        line = pe.currentToken.beginLine;
        column = pe.currentToken.beginColumn;
View Full Code Here

        String sizeUnits = new ProcessUtil(getDataContext()).getSizeUnits();
        SortedMap<String, SizePerItemTable> tables = SizePerItemTable
                .getDefinedTables(getDataRepository(), sizeUnits);
        for (Entry<String, SizePerItemTable> e : tables.entrySet()) {
            String sizePerItemTableName = e.getKey();
            SizePerItemTable sizePerItemTable = e.getValue();
            String valuePrefix = getCategoryValuePrefix(sizePerItemTableName);

            options.append("<optgroup label=\"")
                .append(esc(sizePerItemTableName)).append("\">\n");

            for (String category : sizePerItemTable.getCategoryNames()) {
                String fullCat = valuePrefix + category;

                options.append("<option value=\"").append(esc(fullCat))
                    .append("\">").append(esc(category)).append("\n");

                for (RelativeSize relSize : RelativeSize.values()) {
                    sizeData.append('"')
                        .append(StringUtils.javaEncode(fullCat))
                        .append("/").append(REL_SIZE_NAMES[relSize.ordinal()])
                        .append("\" : ")
                        .append(sizePerItemTable.getSize(category, relSize))
                        .append(",\n");
                }
            }

            options.append("</optgroup>\n");
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.tool.probe.SizePerItemTable$ParseException

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.