Package org.eclipse.jface.text.presentation

Examples of org.eclipse.jface.text.presentation.PresentationReconciler


  }

  public static class CompareResultViewerConfiguration extends SourceViewerConfiguration {

    public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) {
      PresentationReconciler reconciler = new PresentationReconciler();
      SimpleDamagerRepairer  dr = new SimpleDamagerRepairer();
      reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
      reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);

      return reconciler;
    }
View Full Code Here


  }

  @Override
  public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) {
    MDScanner scanner = new MDScanner(colorManager);
    PresentationReconciler pr = (PresentationReconciler) super.getPresentationReconciler(sourceViewer); // FIXME
    DefaultDamagerRepairer ddr = new DefaultDamagerRepairer(scanner);
    pr.setRepairer(ddr, IDocument.DEFAULT_CONTENT_TYPE);
    pr.setDamager(ddr, IDocument.DEFAULT_CONTENT_TYPE);
    return pr;
  }
View Full Code Here

    }
    return scanner;
  }
 
  public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer){
    PresentationReconciler reconciler = new PresentationReconciler();
   
    NonRuleBasedDamagerRepairer ndr =
        new NonRuleBasedDamagerRepairer(
          new TextAttribute(
              colorManager.getColor(CFMColorConstants.CF_COMMENT)));
    reconciler.setDamager(ndr, CFMPartitionScanner.CF_COMMENT);
    reconciler.setRepairer(ndr, CFMPartitionScanner.CF_COMMENT);
   
    return reconciler;
   
  }
View Full Code Here

    }
    return tagScanner;
  }

  public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) {
    PresentationReconciler reconciler = new PresentationReconciler();

    DefaultDamagerRepairer dr =
      new DefaultDamagerRepairer(getXMLTagScanner());
    reconciler.setDamager(dr, XMLPartitionScanner.XML_TAG);
    reconciler.setRepairer(dr, XMLPartitionScanner.XML_TAG);

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

    NonRuleBasedDamagerRepairer ndr =
      new NonRuleBasedDamagerRepairer(
        new TextAttribute(
          colorManager.getColor(IXMLColorConstants.XML_COMMENT)));
    reconciler.setDamager(ndr, XMLPartitionScanner.XML_COMMENT);
    reconciler.setRepairer(ndr, XMLPartitionScanner.XML_COMMENT);

    return reconciler;
  }
View Full Code Here

  /* Method declared on SourceViewerConfiguration */
  public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) {
   
    ProcessingColorProvider provider= ProcessingPlugin.getDefault().getProcessingColorProvider();
   
    PresentationReconciler reconciler= new PresentationReconciler();
    reconciler.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer));
   
    DefaultDamagerRepairer dr= new DefaultDamagerRepairer(ProcessingPlugin.getDefault().getProcessingCodeScanner());
    reconciler.setDamager(dr, IDocument.DEFAULT_CONTENT_TYPE);
    reconciler.setRepairer(dr, IDocument.DEFAULT_CONTENT_TYPE);

    dr= new DefaultDamagerRepairer(new SingleTokenScanner(new TextAttribute(provider.getColor(ProcessingColorProvider.COMMENT1))));
    reconciler.setDamager(dr, ProcessingPartitionScanner.MULTILINE_COMMENT);
    reconciler.setRepairer(dr, ProcessingPartitionScanner.MULTILINE_COMMENT);

    return reconciler;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.text.presentation.PresentationReconciler

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.