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

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


    if (elementMetaData.getCompatibilityLevel() > compatibilityLevel)
    {
      // warn: ReportMigrationInspection.ElementInvalid
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("ReportMigrationInspection.ElementInvalid",
              element.getName(), compatibilityText), new LocationInfo(element)));
    }

    for (final AttributeMetaData attributeMetaData : elementMetaData.getAttributeDescriptions())
    {
      if (attributeMetaData.getCompatibilityLevel() > compatibilityLevel)
View Full Code Here


    if (expressionMetaData.getCompatibilityLevel() > compatibilityLevel)
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("ReportMigrationInspection.ExpressionInvalid",
              expressionMetaData.getDisplayName(Locale.getDefault()), compatibilityText),
          new LocationInfo(expression)));
    }
  }
View Full Code Here

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

  }
View Full Code Here

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

    {
      final Throwable throwable = dataSchemaModel.getDataFactoryException();
      if (throwable != null)
      {
        final DataFactory dataFactory = reportRenderContext.getContextRoot().getDataFactory();
        final LocationInfo queryLocation;
        if (dataFactory instanceof CompoundDataFactory)
        {
          final CompoundDataFactory cdf = (CompoundDataFactory) dataFactory;
          final DataFactory element = cdf.getDataFactoryForQuery(query);
          if (element == null)
          {
            queryLocation = new LocationInfo(dataFactory);
          }
          else
          {
            queryLocation = new LocationInfo(element);
          }
        }
        else
        {
          queryLocation = new LocationInfo(dataFactory);
        }
        resultHandler.notifyInspectionResult
            (new InspectionResult(this, InspectionResult.Severity.ERROR,
                Messages.getString("InvalidQueryNameReferenceInspection.QueryDidNotExecute", query, throwable.toString()),
                queryLocation));
View Full Code Here

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

  }
View Full Code Here

    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

    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

    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

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

TOP

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

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.