Examples of LocationInfo


Examples of org.pentaho.reporting.designer.core.inspections.LocationInfo

      }
    }
    catch (Exception e)
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          e.getMessage(), new LocationInfo(expression)));
    }

  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.inspections.LocationInfo

    if (element.getMetaData().isDeprecated())
    {
      final String message = element.getMetaData().getDeprecationMessage(Locale.getDefault());
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("DeprecatedUsagesInspection.ElementTypeDeprecated", element.getName(), message),
          new LocationInfo(element)));
    }

    traverseAttributeExpressions(designerContext, reportRenderContext, resultHandler, columnNames, element);
    traverseStyleExpressions(designerContext, reportRenderContext, resultHandler, columnNames, element);
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.inspections.LocationInfo

    if (expressionMetaData != null && expressionMetaData.isDeprecated())
    {
      final String message = expressionMetaData.getDeprecationMessage(Locale.getDefault());
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("DeprecatedUsagesInspection.ExpressionDeprecated", expression.getName(), message),
          new LocationInfo(expression)));
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.inspections.LocationInfo

    if (metaData.isDeprecated())
    {
      final String message = metaData.getDeprecationMessage(Locale.getDefault());
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("DeprecatedUsagesInspection.DataFactoryDeprecated", metaData.getDisplayName(Locale.getDefault()), message),
          new LocationInfo(dataFactory)));
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.inspections.LocationInfo

    }
    catch (Exception e)
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          e.getMessage(),
          new LocationInfo(expression)));
    }
  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.inspections.LocationInfo

              element.getName(), elementName, instanceIDs.size());
        }
      }

      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          message, new LocationInfo(element)));
    }

  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.inspections.LocationInfo

          if (property == null)
          {
            resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
                Messages.getString("ExpressionsParameterInspection.ExpressionValidationError",
                    expression.getName(), warning),
                new LocationInfo(expression)));
          }
          else
          {
            resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
                Messages.getString("ExpressionsParameterInspection.ExpressionValidationPropertyError",
View Full Code Here

Examples of org.pentaho.reporting.designer.core.inspections.LocationInfo

          final String property = (String) entry.getKey();
          final String warning = (String) entry.getValue();
          if (property == null)
          {
            resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
                warning, new LocationInfo(expression)));
          }
          else
          {
            resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
                warning, new PropertyLocationInfo(expression, property)));
View Full Code Here

Examples of org.pentaho.reporting.designer.core.inspections.LocationInfo

      final String columnName = expression.getName();
      if (exprNames.add(columnName) == false)
      {
        resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
            Messages.getString("DuplicateFieldInspection.ExpressionDuplicate", columnName),
            new LocationInfo(reportDefinition)));
        warnedNames.add(columnName);
      }
    }

    final HashSet<String> cols = new HashSet<String>();
    for (int i = 0; i < columnNames.length; i++)
    {
      final String columnName = columnNames[i];
      if (warnedNames.contains(columnName) == false && cols.add(columnName) == false)
      {
        resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
            Messages.getString("DuplicateFieldInspection.OtherDuplicate", columnName),
            new LocationInfo(reportDefinition)));

      }
    }

  }
View Full Code Here

Examples of org.pentaho.reporting.designer.core.inspections.LocationInfo

        if (isValidField(mapping.getName(), columnNames) == false)
        {
          String message = Messages.getString("InvalidFieldReferenceInspection.SubReportInvalidField",
              report.getName(), mapping.getName());
          InspectionResult ir = new InspectionResult(this, Severity.WARNING, message, new LocationInfo(report));
          resultHandler.notifyInspectionResult(ir);
        }
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.