Examples of IReconcilingStrategy


Examples of org.eclipse.jface.text.reconciler.IReconcilingStrategy

    SpellingService spellingService= EditorsUI.getSpellingService();
    if (spellingService.getActiveSpellingEngineDescriptor(fPreferenceStore) == null)
      return null;
   
    IReconcilingStrategy strategy= new SpellingReconcileStrategy(sourceViewer, spellingService);
    MonoReconciler reconciler= new MonoReconciler(strategy, false);
    reconciler.setIsIncrementalReconciler(false);
    reconciler.setProgressMonitor(new NullProgressMonitor());
    reconciler.setDelay(500);
    return reconciler;
View Full Code Here

Examples of org.eclipse.jface.text.reconciler.IReconcilingStrategy

     * implements INonIncrementalReconcilingStrategy, only call it once
     * regardless of the number and types of partitions.
     */
    ITypedRegion[] partitions = computePartitioning(dirtyRegion);
    for (int i = 0; i < partitions.length && !fIsCanceled; i++) {
      IReconcilingStrategy strategy = getReconcilingStrategy(partitions[i].getType());
      if (strategy != null) {
        strategy.reconcile(partitions[i]);
      }
    }
  }
View Full Code Here

Examples of org.eclipse.jface.text.reconciler.IReconcilingStrategy

       * Process the strategies for the last known-good partitions to
       * ensure all problem annotations are cleared if needed.
       */
      if (fLastPartitions != null && document.getLength() == 0) {
        for (int i = 0; i < fLastPartitions.length; i++) {
          IReconcilingStrategy strategy = getReconcilingStrategy(fLastPartitions[i].getType());
          if (strategy != null) {
            strategy.reconcile(fLastPartitions[i]);
          }
        }
      }
      else {
        DirtyRegion entireDocument = createDirtyRegion(0, document.getLength(), DirtyRegion.INSERT);
View Full Code Here

Examples of org.eclipse.jface.text.reconciler.IReconcilingStrategy

    ValidatorStrategy validatorStrategy = getValidatorStrategy();
    if (validatorStrategy != null) {
      validatorStrategy.endProcessing();
    }
    /* single spell-check for everything to ensure that SpellingProblem offsets are correct */
    IReconcilingStrategy spellingStrategy = getSpellcheckStrategy();
    IDocument document = getDocument();
    if (spellingStrategy != null && document != null) {
       spellingStrategy.reconcile(new Region(0, document.getLength()));
    }
   
    IReconcilingStrategy semanticHighlightingStrategy = getSemanticHighlightingStrategy();
    if (semanticHighlightingStrategy != null && document != null) {
      semanticHighlightingStrategy.reconcile(new Region(0, document.getLength()));
    }

    if ((getTextViewer() instanceof ISourceViewer)) {
      ISourceViewer sourceViewer = (ISourceViewer) getTextViewer();
      IAnnotationModel annotationModel = sourceViewer.getAnnotationModel();
View Full Code Here

Examples of org.eclipse.jface.text.reconciler.IReconcilingStrategy


  public void setDocument(IDocument doc) {
    super.setDocument(doc);
   
    IReconcilingStrategy validatorStrategy = getValidatorStrategy();
    if (validatorStrategy != null) {
      validatorStrategy.setDocument(doc);
    }
    if (fSemanticHighlightingStrategy != null) {
      fSemanticHighlightingStrategy.setDocument(doc);
    }
   
View Full Code Here

Examples of org.eclipse.jface.text.reconciler.IReconcilingStrategy

        ValidatorStrategy validatorStrategy = getValidatorStrategy();
        if (validatorStrategy != null) {
          validatorStrategy.reconcile(fLastPartitions[i], createDirtyRegion(fLastPartitions[i], DirtyRegion.REMOVE));
        }
      }
      IReconcilingStrategy spellingStrategy = getSpellcheckStrategy();
      if (spellingStrategy != null) {
        spellingStrategy.reconcile(new Region(0, document.getLength()));
      }
     
      //if there is a folding strategy then reconcile it
      if(getFoldingStrategy() != null) {
        getFoldingStrategy().reconcile(new Region(0, document.getLength()));
View Full Code Here

Examples of org.eclipse.jface.text.reconciler.IReconcilingStrategy

   * @see org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor#uninstall()
   */
  public void uninstall() {
    if (isInstalled()) {

      IReconcilingStrategy validatorStrategy = getValidatorStrategy();

      if (validatorStrategy != null) {
        if (validatorStrategy instanceof IReleasable)
          ((IReleasable) validatorStrategy).release();
      }
View Full Code Here

Examples of org.eclipse.jface.text.reconciler.IReconcilingStrategy

     * implements INonIncrementalReconcilingStrategy, only call it once
     * regardless of the number and types of partitions.
     */
    ITypedRegion[] partitions = computePartitioning(dirtyRegion);
    for (int i = 0; i < partitions.length; i++) {
      IReconcilingStrategy strategy = getReconcilingStrategy(partitions[i].getType());
      if (strategy != null) {
        strategy.reconcile(partitions[i]);
      }
    }
  }
View Full Code Here

Examples of org.eclipse.jface.text.reconciler.IReconcilingStrategy

       * Process the strategies for the last known-good partitions to
       * ensure all problem annotations are cleared if needed.
       */
      if (fLastPartitions != null && document.getLength() == 0) {
        for (int i = 0; i < fLastPartitions.length; i++) {
          IReconcilingStrategy strategy = getReconcilingStrategy(fLastPartitions[i].getType());
          if (strategy != null) {
            strategy.reconcile(fLastPartitions[i]);
          }
        }
      }
      else {
        DirtyRegion entireDocument = createDirtyRegion(0, document.getLength(), DirtyRegion.INSERT);
View Full Code Here

Examples of org.eclipse.jface.text.reconciler.IReconcilingStrategy

    ValidatorStrategy validatorStrategy = getValidatorStrategy();
    if (validatorStrategy != null) {
      validatorStrategy.endProcessing();
    }
    /* single spell-check for everything to ensure that SpellingProblem offsets are correct */
    IReconcilingStrategy spellingStrategy = getSpellcheckStrategy();
    IDocument document = getDocument();
    if (spellingStrategy != null && document != null) {
       spellingStrategy.reconcile(new Region(0, document.getLength()));
    }
   
    IReconcilingStrategy semanticHighlightingStrategy = getSemanticHighlightingStrategy();
    if (semanticHighlightingStrategy != null && document != null) {
      semanticHighlightingStrategy.reconcile(new Region(0, document.getLength()));
    }

    if ((getTextViewer() instanceof ISourceViewer)) {
      ISourceViewer sourceViewer = (ISourceViewer) getTextViewer();
      IAnnotationModel annotationModel = sourceViewer.getAnnotationModel();
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.