Package org.pentaho.reporting.designer.core.inspections

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


        {
          final String field = referencedFields[y];
          if (isValidField(field, columnNames) == false)
          {
            final StyleMetaData styleDescription = element.getMetaData().getStyleDescription(styleKey);
            resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
                Messages.getString("InvalidFieldReferenceInspection.StyleExpressionInvalidField",
                    element.getName(), styleDescription.getDisplayName(Locale.getDefault()),
                    field, metaData.getDisplayName(Locale.getDefault())),
                new StyleExpressionPropertyLocationInfo(element, styleKey, metaData.getName())));
          }
View Full Code Here


        for (int j = 0; j < referencedFields.length; j++)
        {
          final String field = referencedFields[j];
          if (isValidField(field, columnNames) == false)
          {
            resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
                Messages.getString("InvalidFieldReferenceInspection.ExpressionInvalidField", expression.getName(),
                    field, metaData.getDisplayName(Locale.getDefault())),
                new PropertyLocationInfo(expression, metaData.getName())));
          }
        }
      }
    }
    catch (Exception e)
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          e.getMessage(),
          new LocationInfo(expression)));
    }

  }
View Full Code Here

        for (int j = 0; j < referencedFields.length; j++)
        {
          final String field = referencedFields[j];
          if (isValidField(field, columnNames) == false)
          {
            resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
                Messages.getString("InvalidFieldReferenceInspection.DataSourceInvalidField",
                    metaData.getDisplayName(Locale.getDefault()), field, query),
                new PropertyLocationInfo(dataFactory, query)));
          }
        }
View Full Code Here

                                final ReportElement element)
  {
    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);
View Full Code Here

  {
    final AttributeMetaData attrDescr = element.getMetaData().getAttributeDescription(attributeNamespace, attributeName);
    if (attrDescr != null && attrDescr.isDeprecated())
    {
      final String message = attrDescr.getDeprecationMessage(Locale.getDefault());
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("DeprecatedUsagesInspection.StyleExpressionTargetDeprecated",
              element.getName(), attrDescr.getDisplayName(Locale.getDefault()), message),
          new AttributeLocationInfo(element, attributeNamespace, attributeName, true)));
    }

    if (expressionMetaData == null)
    {
      return;
    }

    if (expressionMetaData.isDeprecated() == false)
    {
      return;
    }
    final String message = expressionMetaData.getDeprecationMessage(Locale.getDefault());
    if (attrDescr != null)
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("DeprecatedUsagesInspection.StyleExpressionDeprecated",
              element.getName(), attrDescr.getDisplayName(Locale.getDefault()), message),
          new AttributeLocationInfo(element, attributeNamespace, attributeName, true)));
    }
    else
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("DeprecatedUsagesInspection.StyleExpressionDeprecatedNoMetaData",
              element.getName(), attributeNamespace, attributeName, message),
          new AttributeLocationInfo(element, attributeNamespace, attributeName, true)));
    }
View Full Code Here

  {
    final StyleMetaData styleDescription = element.getMetaData().getStyleDescription(styleKey);
    if (styleDescription != null && styleDescription.isDeprecated())
    {
      final String message = styleDescription.getDeprecationMessage(Locale.getDefault());
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("DeprecatedUsagesInspection.StyleExpressionTargetDeprecated",
              element.getName(), styleDescription.getDisplayName(Locale.getDefault()), message),
          new StyleLocationInfo(element, styleKey, true)));
    }

    if (expressionMetaData == null)
    {
      return;
    }

    if (expressionMetaData.isDeprecated() == false)
    {
      return;
    }
    final String message = expressionMetaData.getDeprecationMessage(Locale.getDefault());
    if (styleDescription != null)
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("DeprecatedUsagesInspection.StyleExpressionDeprecated",
              element.getName(), styleDescription.getDisplayName(Locale.getDefault()), message),
          new StyleLocationInfo(element, styleKey, true)));
    }
    else
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("DeprecatedUsagesInspection.StyleExpressionDeprecatedNoMetaData",
              element.getName(), styleKey.getName(), message),
          new StyleLocationInfo(element, styleKey, true)));
    }
  }
View Full Code Here

    }
    final ExpressionMetaData metaData = ExpressionRegistry.getInstance().getExpressionMetaData(key);
    if (metaData.isDeprecated())
    {
      final String message = metaData.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

    }
    final DataFactoryMetaData metaData = DataFactoryRegistry.getInstance().getMetaData(key);
    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

    if (fontHeight <= Math.max(minHeight, StrictGeomUtility.toExternalValue(effectiveLineHeight)))
    {
      return;
    }

    resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
        Messages.getString("FontSizeInspection.ElementHeightSmallerThanLineSize", element.getName()),
        new StyleLocationInfo(element, ElementStyleKeys.MIN_HEIGHT, false)));

  }
View Full Code Here

          support.setFormatString(fmtString);
        }
      }
      catch (Exception e)
      {
        resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
            Messages.getString("InvalidFormatInspection.AttributeInvalidFormat",
                element.getName(), data.getDisplayName(Locale.getDefault()), fmtString),
            new AttributeLocationInfo(element, data.getNameSpace(), data.getName(), false)));
      }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.designer.core.inspections.InspectionResult

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.