Package org.eclipse.wst.validation

Examples of org.eclipse.wst.validation.ValidationResult


  /**
   * 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


   * @see org.eclipse.wst.validation.AbstractValidator#validate(org.eclipse.core.resources.IResource, int, org.eclipse.wst.validation.ValidationState, org.eclipse.core.runtime.IProgressMonitor)
   */
  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

   * @see org.eclipse.wst.validation.AbstractValidator#validate(org.eclipse.core.resources.IResource, int, org.eclipse.wst.validation.ValidationState, org.eclipse.core.runtime.IProgressMonitor)
   */
  public ValidationResult validate(IResource resource, int kind, ValidationState state, IProgressMonitor monitor) {
    if (resource.getType() != IResource.FILE)
      return null;
    ValidationResult result = new ValidationResult();
    fReporter = result.getReporter(monitor);

    validateV1File((IFile) resource, fReporter);
   
    return result;
  }
View Full Code Here

    if (resource.getType() != IResource.FILE
        || !(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

    if (resource.getType() != IResource.FILE || resource.isDerived(IResource.CHECK_ANCESTORS)) {
      return null;
    }
   
    ValidationResult result = new ValidationResult();
//    IReporter reporter = result.getReporter(monitor);
    IFile file = (IFile) resource;
   
    //TODO: check why the include nodes don't work in plugin.xml and we get
    // everything passed in here...
View Full Code Here

TOP

Related Classes of org.eclipse.wst.validation.ValidationResult

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.