Search in sources :

Example 11 with PresentationReconciler

use of org.eclipse.jface.text.presentation.PresentationReconciler in project eclipse.platform.text by eclipse.

the class SourceViewerConfiguration method getPresentationReconciler.

/**
 * Returns the presentation reconciler ready to be used with the given source viewer.
 *
 * @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;
}
Also used : IPresentationReconciler(org.eclipse.jface.text.presentation.IPresentationReconciler) PresentationReconciler(org.eclipse.jface.text.presentation.PresentationReconciler)

Aggregations

IPresentationReconciler (org.eclipse.jface.text.presentation.IPresentationReconciler)11 PresentationReconciler (org.eclipse.jface.text.presentation.PresentationReconciler)11 DefaultDamagerRepairer (org.eclipse.jface.text.rules.DefaultDamagerRepairer)7 TextAttribute (org.eclipse.jface.text.TextAttribute)5 NonRuleBasedDamagerRepairer (com.cubrid.tool.editor.NonRuleBasedDamagerRepairer)2 JavaColorProvider (org.eclipse.ui.examples.javaeditor.util.JavaColorProvider)1