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

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


          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

          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

      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

        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

    }
    catch (final 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 CachedLayoutData data = ModelUtility.getCachedLayoutData((Element) element);
    if (data.isConflictsInTableMode())
    {
      resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
          Messages.getString("OverlappingElementsInspection.ElementConflictsInTableMode", element.getName()),
          new LocationInfo(element)));
    }

  }
View Full Code Here

          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

          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

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.