/// <summary> /// Monitor changes to the source Cobol file and automatically update TextDocument contents after each file update /// </summary> public virtual void StartContinuousFileProcessing() { // Reload text document each time an external change is applied to the cobol file ObserverTextDocument observerTextDocument = new ObserverTextDocument(CobolFile, TextDocument); CobolFile.CobolFileChanged += observerTextDocument.OnCobolFileChanged; // Start compilation process TextDocument.StartSendingChangeEvents(); CobolFile.StartMonitoringExternalChanges(); }