1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-01 05:15:43 +02:00

Changed reconciler to be non-incremental due to the latency that is

incurred as part of the editor close operation.
PR 130089
This commit is contained in:
Thomas Fletcher 2006-04-18 18:40:47 +00:00
parent 9222a14bd9
commit de00c8a6af

View file

@ -226,13 +226,16 @@ public class CSourceViewerConfiguration extends TextSourceViewerConfiguration {
protected void initialProcess() {
// prevent case where getDocument() returns null
// and causes exception in initialProcess()
// PR 63890
IDocument doc = getDocument();
if (doc != null)
super.initialProcess();
}
};
reconciler.setDelay(1000);
// reconciler.setIsIncrementalReconciler(false);
//Delay changed and non-incremental reconciler used due to
//PR 130089
reconciler.setDelay(500);
reconciler.setIsIncrementalReconciler(false);
reconciler.setReconcilingStrategy(new CReconcilingStrategy(fEditor), IDocument.DEFAULT_CONTENT_TYPE);
return reconciler;
}