Examples of IncrementalReporter


Examples of org.eclipse.wst.sse.ui.internal.reconcile.validator.IncrementalReporter

      if (processor != null) {
        messageEmpty.setAttribute(IQuickAssistProcessor.class.getName(), processor);

        AnnotationInfo info = new QuickfixAnnotationInfo(messageEmpty);

        IncrementalReporter incrementalReporter = (IncrementalReporter) reporter;
        AnnotationInfo[] existingInfos = incrementalReporter.getAnnotationInfo();
        for (AnnotationInfo existingInfo : existingInfos) {
          IMessage existingMessage = existingInfo.getMessage();

          if (existingMessage.getOffset() != messageEmpty.getOffset()) {
            continue;
          }
          if (!existingMessage.getText().equals(messageEmpty.getText())) {
            continue;
          }

          Object existingProcessor = existingMessage.getAttribute(IQuickAssistProcessor.class.getName());
          if (existingProcessor != null && existingProcessor.equals(processor)) {
            return;
          }
        }

        incrementalReporter.addAnnotationInfo(this, info);
      }
    }
  }
View Full Code Here

Examples of org.eclipse.wst.sse.ui.internal.reconcile.validator.IncrementalReporter

    validator.connect(document);
    reporter = createReporter();
  }

  private IncrementalReporter createReporter() {
    return new IncrementalReporter(new NullProgressMonitor());
  }
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.