Package org.eclipse.dltk.ui.text

Examples of org.eclipse.dltk.ui.text.ScriptPresentationReconciler


        DeePartitions.DEE_CHARACTER);
  }
 
  @Override
  protected ScriptPresentationReconciler createPresentationReconciler() {
    return new ScriptPresentationReconciler();
  }
View Full Code Here


    return fCommentScanner;
  }

  @Override
  public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) {
    PresentationReconciler reconciler = new ScriptPresentationReconciler();
    reconciler.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer));

    DefaultDamagerRepairer dr = new DefaultDamagerRepairer(this.fCodeScanner);
    reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
    reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);

    dr = new DefaultDamagerRepairer(getStringScanner());
    reconciler.setDamager(dr, RutaPartitions.RUTA_STRING);
    reconciler.setRepairer(dr, RutaPartitions.RUTA_STRING);

    dr = new DefaultDamagerRepairer(getCommentScanner());
    reconciler.setDamager(dr, RutaPartitions.RUTA_COMMENT);
    reconciler.setRepairer(dr, RutaPartitions.RUTA_COMMENT);

    return reconciler;
  }
View Full Code Here

    return fCommentScanner;
  }

  @Override
  public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) {
    PresentationReconciler reconciler = new ScriptPresentationReconciler();
    reconciler.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer));

    DefaultDamagerRepairer dr = new DefaultDamagerRepairer(this.fCodeScanner);
    reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
    reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);

    dr = new DefaultDamagerRepairer(getStringScanner());
    reconciler.setDamager(dr, RutaPartitions.RUTA_STRING);
    reconciler.setRepairer(dr, RutaPartitions.RUTA_STRING);

    dr = new DefaultDamagerRepairer(getCommentScanner());
    reconciler.setDamager(dr, RutaPartitions.RUTA_COMMENT);
    reconciler.setRepairer(dr, RutaPartitions.RUTA_COMMENT);

    return reconciler;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.ui.text.ScriptPresentationReconciler

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.