Package at.bestsolution.efxclipse.text.jface.presentation

Examples of at.bestsolution.efxclipse.text.jface.presentation.PresentationReconciler$InternalListener


    return IJavaPartitions.JAVA_PARTITIONING;
  }
 
  @Override
  public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) {
    PresentationReconciler reconciler= new JavaPresentationReconciler();
    reconciler.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer));
   
    DefaultDamagerRepairer dr= new DefaultDamagerRepairer(textTools.getCodeScanner());
    reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
    reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);

    dr= new DefaultDamagerRepairer(textTools.getJavaDocScanner());
    reconciler.setDamager(dr, IJavaPartitions.JAVA_DOC);
    reconciler.setRepairer(dr, IJavaPartitions.JAVA_DOC);

    dr= new DefaultDamagerRepairer(textTools.getMultilineCommentScanner());
    reconciler.setDamager(dr, IJavaPartitions.JAVA_MULTI_LINE_COMMENT);
    reconciler.setRepairer(dr, IJavaPartitions.JAVA_MULTI_LINE_COMMENT);

    dr= new DefaultDamagerRepairer(textTools.getSinglelineCommentScanner());
    reconciler.setDamager(dr, IJavaPartitions.JAVA_SINGLE_LINE_COMMENT);
    reconciler.setRepairer(dr, IJavaPartitions.JAVA_SINGLE_LINE_COMMENT);

    dr= new DefaultDamagerRepairer(textTools.getStringScanner());
    reconciler.setDamager(dr, IJavaPartitions.JAVA_STRING);
    reconciler.setRepairer(dr, IJavaPartitions.JAVA_STRING);

    dr= new DefaultDamagerRepairer(textTools.getStringScanner());
    reconciler.setDamager(dr, IJavaPartitions.JAVA_CHARACTER);
    reconciler.setRepairer(dr, IJavaPartitions.JAVA_CHARACTER);


    return reconciler;
  }
View Full Code Here


   *
   * @param sourceViewer the source viewer
   * @return the presentation reconciler or <code>null</code> if presentation reconciling should not be supported
   */
  public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) {
    PresentationReconciler reconciler= new PresentationReconciler();
    reconciler.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer));
    return reconciler;
  }
View Full Code Here

TOP

Related Classes of at.bestsolution.efxclipse.text.jface.presentation.PresentationReconciler$InternalListener

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.