Examples of IReporter


Examples of org.eclipse.wst.validation.internal.provisional.core.IReporter

  /**
   * Perform the validation using version 2 of the validation framework.
   */
  public ValidationResult validate(IResource resource, int kind, ValidationState state, IProgressMonitor monitor){
    ValidationResult result = new ValidationResult()
    IReporter reporter = result.getReporter(monitor);
    IFile file = null;
    if (resource instanceof IFile)file = (IFile)resource;
    if (file != null)
    {
      NestedValidatorContext nestedcontext = getNestedContext(state, false);
View Full Code Here

Examples of org.eclipse.wst.validation.internal.provisional.core.IReporter

  public ValidationResult validate(final IResource resource, int kind, ValidationState state, IProgressMonitor monitor) {
    if (resource.getType() != IResource.FILE)
      return null;

    ValidationResult result = new ValidationResult();
    final IReporter reporter = result.getReporter(monitor);

    if (fragmentCheck((IFile) resource)) {
      IStructuredModel model = null;
      try {
        model = StructuredModelManager.getModelManager().getModelForRead((IFile) resource);
        if (!reporter.isCancelled() && model instanceof IDOMModel) {
          reporter.removeAllMessages(this, resource);
          validate((IFile) resource, kind, state, monitor, (IDOMModel) model, reporter);
        }
      }
      catch (IOException e) {
        Logger.logException(e);
View Full Code Here

Examples of org.eclipse.wst.validation.internal.provisional.core.IReporter

      final ValidationState state, final IProgressMonitor monitor) {
    final ValidationResult vr = new ValidationResult();
    if (resource == null || !(resource instanceof IFile)) {
      return vr;
    }
    final IReporter reporter = vr.getReporter(monitor);
    validateFile((IFile) resource, reporter);
    return vr;
  }
View Full Code Here

Examples of org.eclipse.wst.validation.internal.provisional.core.IReporter

        Logger.logException(e.getLocalizedMessage(), e);
      }
    }

    if ( XMLCorePlugin.getDefault().getPluginPreferences().getBoolean(XMLCorePreferenceNames.MARKUP_VALIDATION)){
      IReporter reporter = executeMarkupValidator(uri);
      if (reporter != null){
        List msgList = reporter.getMessages();
        for (int i = 0;i < msgList.size();i++){
          LocalizedMessage msg = (LocalizedMessage)msgList.get(i);
          if (msg.getSeverity() == 2)
            valinfo.addError(msg.getLocalizedMessage(), msg.getLineNumber(), msg.getOffset(),valinfo.getFileURI(),"null",getMsgArguments(msg) ); //$NON-NLS-1$
          else if (msg.getSeverity() == 1)
View Full Code Here

Examples of org.eclipse.wst.validation.internal.provisional.core.IReporter

    }
    else {
      resource = ResourcesPlugin.getWorkspace().getRoot().getFile(path);
     
    }
    IReporter reporter = null;
    if (resource != null){
        reporter = val.validate(resource, 0, new ValOperation().getState()) ;
    }
    return reporter;
  }
View Full Code Here

Examples of org.eclipse.wst.validation.internal.provisional.core.IReporter

  /**
   * Perform the validation using version 2 of the validation framework.
   */
  public ValidationResult validate(IResource resource, int kind, ValidationState state, IProgressMonitor monitor){
    ValidationResult result = new ValidationResult()
    IReporter reporter = result.getReporter(monitor);
    IFile file = null;
    if (resource instanceof IFile)file = (IFile)resource;
    if (file != null)
    {
      NestedValidatorContext nestedcontext = getNestedContext(state, false);
View Full Code Here

Examples of org.eclipse.wst.validation.internal.provisional.core.IReporter

   */
  public ValidationResult validate(IResource resource, int kind, ValidationState state, IProgressMonitor monitor) {
    if (resource.getType() != IResource.FILE)
      return null;
    ValidationResult result = new ValidationResult();
    IReporter reporter = result.getReporter(monitor);
    validateV1File((IFile) resource, reporter);
    return result;
  }
View Full Code Here

Examples of org.eclipse.wst.validation.internal.provisional.core.IReporter

        || !(PHPToolkitUtil.isPhpFile((IFile) resource))) {
      return null;
    }

    ValidationResult result = new ValidationResult();
    IReporter reporter = result.getReporter(monitor);
    validateFile(reporter, (IFile) resource, kind);

    return result;
  }
View Full Code Here

Examples of org.testng.IReporter

  @Test(description = "Make sure that skipped methods are accurately counted")
  public void skippedMethodsShouldBeCounted() {
    TestNG tng = create(CountSampleTest.class);

    IReporter r = new IReporter() {
      @Override
      public void generateReport(List<XmlSuite> xmlSuites, List<ISuite> suites,
          String outputDirectory) {
        for (ISuite s : suites) {
          for (ISuiteResult sr : s.getResults().values()) {
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.