use of org.eclipse.xtext.ui.editor.XtextPresentationReconciler in project xtext-xtend by eclipse.
the class XtendSourceViewerConfiguration method getPresentationReconciler.
@Override
public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer) {
XtextPresentationReconciler reconciler = (XtextPresentationReconciler) super.getPresentationReconciler(sourceViewer);
IPreferenceStore store = JavaPlugin.getDefault().getCombinedPreferenceStore();
IColorManager colorManager = JavaPlugin.getDefault().getJavaTextTools().getColorManager();
JavaDocScanner javaDocScanner = new JavaDocScanner(colorManager, store, null);
DefaultDamagerRepairer dr = new DefaultDamagerRepairer(javaDocScanner);
reconciler.setRepairer(dr, TokenTypeToPartitionMapper.JAVA_DOC_PARTITION);
reconciler.setDamager(dr, TokenTypeToPartitionMapper.JAVA_DOC_PARTITION);
return reconciler;
}
Aggregations