Examples of StyleLocationInfo


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

    if (styleMetaData.getCompatibilityLevel() > compatibilityLevel)
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("ReportMigrationInspection.StyleExpressionInvalid",
              styleMetaData.getDisplayName(Locale.getDefault()), element.getName(), compatibilityText),
          new StyleLocationInfo(element, styleKey, false)));
    }

    if (expressionMetaData.getCompatibilityLevel() > compatibilityLevel)
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("ReportMigrationInspection.StyleExpressionInvalid",
              styleMetaData.getDisplayName(Locale.getDefault()), element.getName(), compatibilityText),
          new StyleLocationInfo(element, styleKey, false)));
    }
  }
View Full Code Here

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

    {
      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

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

      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

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

      if (description == null)
      {
        resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
            Messages.getString("FormulaErrorInspection.StyleNoFormulaNoMetaData",
                element.getName(), styleKey.getName()),
            new StyleLocationInfo(element, styleKey, true)));
      }
      else
      {
        resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
            Messages.getString("FormulaErrorInspection.StyleNoFormula",
                element.getName(), description.getDisplayName(Locale.getDefault())),
            new StyleLocationInfo(element, styleKey, true)));
      }
      return;
    }

    try
    {
      compileFormula(s);
    }
    catch (ParseException pe)
    {
      // pe is ignored
      final StyleMetaData description = element.getMetaData().getStyleDescription(styleKey);
      if (description != null)
      {
        resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
            Messages.getString("FormulaErrorInspection.StyleInvalidFormula",
                element.getName(), description.getDisplayName(Locale.getDefault())),
            new StyleLocationInfo(element, styleKey, true)));
      }
      else
      {
        resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
            Messages.getString("FormulaErrorInspection.StyleInvalidFormulaNoMetaData",
                element.getName(), styleKey.getName()),
            new StyleLocationInfo(element, styleKey, true)));
      }
    }
  }
View Full Code Here

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

      if (description == null)
      {
        resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
            Messages.getString("FormulaErrorInspection.StyleNoFormulaNoMetaData",
                element.getName(), styleKey.getName()),
            new StyleLocationInfo(element, styleKey, true)));
      }
      else
      {
        resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
            Messages.getString("FormulaErrorInspection.StyleNoFormula",
                element.getName(), description.getDisplayName(Locale.getDefault())),
            new StyleLocationInfo(element, styleKey, true)));
      }
      return;
    }

    try
    {
      compileFormula(s);
    }
    catch (ParseException pe)
    {
      // pe is ignored
      final StyleMetaData description = element.getMetaData().getStyleDescription(styleKey);
      if (description != null)
      {
        resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
            Messages.getString("FormulaErrorInspection.StyleInvalidFormula",
                element.getName(), description.getDisplayName(Locale.getDefault())),
            new StyleLocationInfo(element, styleKey, true)));
      }
      else
      {
        resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
            Messages.getString("FormulaErrorInspection.StyleInvalidFormulaNoMetaData",
                element.getName(), styleKey.getName()),
            new StyleLocationInfo(element, styleKey, true)));
      }
    }
  }
View Full Code Here

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

    {
      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

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

      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
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.