Package processing.plugin.ui.editor.util

Examples of processing.plugin.ui.editor.util.ProcessingColorProvider


   * Returns the shared color provider.
   *
   * @return the singleton Processing color provider
   */
  public ProcessingColorProvider getProcessingColorProvider() {
    return (fColorProvider == null) ? new ProcessingColorProvider() : fColorProvider;
  }
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 processing.plugin.ui.editor.util.ProcessingColorProvider

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.