|
|
|
@ -51,7 +51,7 @@ namespace ICSharpCode.AvalonEdit.AddIn
@@ -51,7 +51,7 @@ namespace ICSharpCode.AvalonEdit.AddIn
|
|
|
|
|
CodeEditorAdapter secondaryTextEditorAdapter; |
|
|
|
|
readonly IconBarManager iconBarManager; |
|
|
|
|
readonly TextMarkerService textMarkerService; |
|
|
|
|
readonly ErrorPainter errorPainter; |
|
|
|
|
ErrorPainter errorPainter; |
|
|
|
|
|
|
|
|
|
BracketHighlightRenderer primaryBracketRenderer; |
|
|
|
|
BracketHighlightRenderer secondaryBracketRenderer; |
|
|
|
@ -117,6 +117,11 @@ namespace ICSharpCode.AvalonEdit.AddIn
@@ -117,6 +117,11 @@ namespace ICSharpCode.AvalonEdit.AddIn
|
|
|
|
|
if (secondaryTextEditorAdapter != null) |
|
|
|
|
secondaryTextEditorAdapter.FileNameChanged(); |
|
|
|
|
|
|
|
|
|
if (this.errorPainter != null) |
|
|
|
|
this.errorPainter.Dispose(); |
|
|
|
|
|
|
|
|
|
this.errorPainter = new ErrorPainter(primaryTextEditorAdapter); |
|
|
|
|
|
|
|
|
|
FetchParseInformation(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -141,8 +146,6 @@ namespace ICSharpCode.AvalonEdit.AddIn
@@ -141,8 +146,6 @@ namespace ICSharpCode.AvalonEdit.AddIn
|
|
|
|
|
primaryTextEditorAdapter = (CodeEditorAdapter)primaryTextEditor.TextArea.GetService(typeof(ITextEditor)); |
|
|
|
|
Debug.Assert(primaryTextEditorAdapter != null); |
|
|
|
|
|
|
|
|
|
this.errorPainter = new ErrorPainter(primaryTextEditorAdapter); |
|
|
|
|
|
|
|
|
|
this.primaryBracketRenderer = new BracketHighlightRenderer(primaryTextEditor.TextArea.TextView); |
|
|
|
|
|
|
|
|
|
this.Document = primaryTextEditor.Document; |
|
|
|
@ -527,6 +530,7 @@ namespace ICSharpCode.AvalonEdit.AddIn
@@ -527,6 +530,7 @@ namespace ICSharpCode.AvalonEdit.AddIn
|
|
|
|
|
if (secondaryTextEditorAdapter != null) |
|
|
|
|
secondaryTextEditorAdapter.Language.Detach(); |
|
|
|
|
|
|
|
|
|
if (errorPainter != null) |
|
|
|
|
errorPainter.Dispose(); |
|
|
|
|
this.Document = null; |
|
|
|
|
} |
|
|
|
|