Examples of IReconcilingStrategy


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

  public void uninstall() {
    if (isInstalled()) {

      cancel();

      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

    return detectorsNew;
  }

  @Override
  public IReconciler getReconciler(ISourceViewer sourceViewer) {
    IReconcilingStrategy reconcilingStrategy= new ReconcilingStrategy(editor);
    MonoReconciler reconciler= new MonoReconciler(reconcilingStrategy, false);
    reconciler.setDelay(500);
    return reconciler;
  }
View Full Code Here

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

        SpellingService spellingService = EditorsUI.getSpellingService();
        if (spellingService.getActiveSpellingEngineDescriptor(fPreferenceStore) == null)
            return null;

        //Overridden (just) to return a PyReconciler!
        IReconcilingStrategy strategy = new PyReconciler(sourceViewer, spellingService);

        MonoReconciler reconciler = new MonoReconciler(strategy, false);
        reconciler.setIsIncrementalReconciler(false);
        reconciler.setProgressMonitor(new NullProgressMonitor());
        reconciler.setDelay(500);
View Full Code Here

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

   * (org.eclipse.jface.text.source.ISourceViewer)
   */
  @Override
  public IReconciler getReconciler(ISourceViewer sourceViewer) {

    IReconcilingStrategy strategy = new GherkinReconcilingStrategy(editor);

    MonoReconciler reconciler = new MonoReconciler(strategy, false);
    return reconciler;
  }
View Full Code Here

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

  public IReconciler getReconciler(ISourceViewer sourceViewer) {
    // This awful mess adds in update support
    // Get super strategy
    IReconciler rs = super.getReconciler(sourceViewer);
    if (true) return rs;  // Seems to work fine?!
    final IReconcilingStrategy fsuperStrategy = rs==null? null : rs.getReconcilingStrategy("text");
    // Add our own
    IReconcilingStrategy strategy = new IReconcilingStrategy() {
      private IDocument doc;
      public void reconcile(IRegion partition) {
        MarkdownEditor ed = MarkdownEditor.getEditor(doc);
        if (ed != null) ed.updatePage(partition);
        if (fsuperStrategy!=null) fsuperStrategy.reconcile(partition);
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.