1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-09 09:15:38 +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() { protected void initialProcess() {
// prevent case where getDocument() returns null // prevent case where getDocument() returns null
// and causes exception in initialProcess() // and causes exception in initialProcess()
// PR 63890
IDocument doc = getDocument(); IDocument doc = getDocument();
if (doc != null) if (doc != null)
super.initialProcess(); super.initialProcess();
} }
}; };
reconciler.setDelay(1000); //Delay changed and non-incremental reconciler used due to
// reconciler.setIsIncrementalReconciler(false); //PR 130089
reconciler.setDelay(500);
reconciler.setIsIncrementalReconciler(false);
reconciler.setReconcilingStrategy(new CReconcilingStrategy(fEditor), IDocument.DEFAULT_CONTENT_TYPE); reconciler.setReconcilingStrategy(new CReconcilingStrategy(fEditor), IDocument.DEFAULT_CONTENT_TYPE);
return reconciler; return reconciler;
} }