Search in sources :

Example 1 with MarkupDamagerRepairer

use of org.eclipse.mylyn.internal.wikitext.ui.editor.syntax.MarkupDamagerRepairer in project mylyn.docs by eclipse.

the class MarkupSourceViewerConfiguration method getPresentationReconciler.

@Override
public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) {
    PresentationReconciler reconciler = new PresentationReconciler();
    reconciler.setDocumentPartitioning(getConfiguredDocumentPartitioning(sourceViewer));
    MarkupDamagerRepairer damagerRepairer = new MarkupDamagerRepairer(getMarkupScanner());
    for (String partitionType : FastMarkupPartitioner.ALL_CONTENT_TYPES) {
        reconciler.setDamager(damagerRepairer, partitionType);
        reconciler.setRepairer(damagerRepairer, partitionType);
    }
    reconciler.setDamager(damagerRepairer, IDocument.DEFAULT_CONTENT_TYPE);
    reconciler.setRepairer(damagerRepairer, IDocument.DEFAULT_CONTENT_TYPE);
    return reconciler;
}
Also used : MarkupDamagerRepairer(org.eclipse.mylyn.internal.wikitext.ui.editor.syntax.MarkupDamagerRepairer) IPresentationReconciler(org.eclipse.jface.text.presentation.IPresentationReconciler) PresentationReconciler(org.eclipse.jface.text.presentation.PresentationReconciler)

Aggregations

IPresentationReconciler (org.eclipse.jface.text.presentation.IPresentationReconciler)1 PresentationReconciler (org.eclipse.jface.text.presentation.PresentationReconciler)1 MarkupDamagerRepairer (org.eclipse.mylyn.internal.wikitext.ui.editor.syntax.MarkupDamagerRepairer)1