Package org.eclipse.wst.validation.internal.provisional.core

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;
    final ValidationResult result = new ValidationResult();
    final IReporter reporter = result.getReporter(monitor);
   
    if(result.getDependsOn() != null) {
      fDependsOn = new HashSet(Arrays.asList(result.getDependsOn()));
    }
    else {
View Full Code Here


  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

  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);
    validateFile((IFile) resource, reporter);
    return result;
  }
View Full Code Here

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

  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

      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

        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

    }
    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

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

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

TOP

Related Classes of org.eclipse.wst.validation.internal.provisional.core.IReporter

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.