Beispiel #1
0
 public override void Dispose()
 {
     if (syntaxMode != null)
     {
         Editor.SemanticHighlighting = null;
         syntaxMode.Dispose();
         syntaxMode = null;
     }
     base.Dispose();
 }
 public override void Dispose()
 {
     if (syntaxMode != null)
     {
         TextEditorData.Document.SyntaxMode = null;
         syntaxMode.Dispose();
         syntaxMode = null;
     }
     base.Dispose();
 }
Beispiel #3
0
        public override void Dispose()
        {
            if (syntaxMode != null)
            {
                textEditorData.Document.SyntaxMode = null;
                syntaxMode.Dispose();
                syntaxMode = null;
            }

            textEditorData.SelectionChanged      -= HandleTextEditorDataSelectionChanged;
            textEditorData.Caret.PositionChanged -= HandleTextEditorDataCaretPositionChanged;
            textEditorData.Document.TextReplaced -= HandleTextEditorDataDocumentTextReplaced;
            base.Dispose();
            RemoveTimer();
        }