use of org.eclipse.jdt.ui.text.IColorManager in project tdi-studio-se by Talend.
the class TalendJavaSourceViewer method installViewerConfiguration.
/*
* (non-Javadoc)
*
* @see org.talend.core.ui.viewer.ReconcilerViewer#installViewerConfiguration()
*/
@Override
protected void installViewerConfiguration() {
JavaTextTools tools = JavaPlugin.getDefault().getJavaTextTools();
tools.setupJavaDocumentPartitioner(getDocument(), IJavaPartitions.JAVA_PARTITIONING);
IPreferenceStore store = JavaPlugin.getDefault().getCombinedPreferenceStore();
configure(new TalendJavaViewerConfiguration((IColorManager) sharedColors, store, this));
}
use of org.eclipse.jdt.ui.text.IColorManager 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