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;
}
Aggregations