|
|
|
|
@ -7,6 +7,7 @@
@@ -7,6 +7,7 @@
|
|
|
|
|
|
|
|
|
|
using ICSharpCode.Core; |
|
|
|
|
using ICSharpCode.SharpDevelop; |
|
|
|
|
using ICSharpCode.SharpDevelop.Bookmarks; |
|
|
|
|
using ICSharpCode.SharpDevelop.DefaultEditor; |
|
|
|
|
using ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor; |
|
|
|
|
using ICSharpCode.SharpDevelop.Gui; |
|
|
|
|
@ -41,6 +42,8 @@ namespace ICSharpCode.XmlEditor
@@ -41,6 +42,8 @@ namespace ICSharpCode.XmlEditor
|
|
|
|
|
Document.FoldingManager.FoldingStrategy = new XmlFoldingStrategy(); |
|
|
|
|
TextEditorProperties = new SharpDevelopTextEditorProperties(); |
|
|
|
|
|
|
|
|
|
Document.BookmarkManager.Removed += new ICSharpCode.TextEditor.Document.BookmarkEventHandler(BookmarkRemoved); |
|
|
|
|
|
|
|
|
|
GenerateEditActions(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -324,5 +327,23 @@ namespace ICSharpCode.XmlEditor
@@ -324,5 +327,23 @@ namespace ICSharpCode.XmlEditor
|
|
|
|
|
|
|
|
|
|
ActiveTextAreaControl.TextArea.MotherTextEditorControl.EndUpdate(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Have to remove the bookmark from the document otherwise the text will
|
|
|
|
|
/// stay marked in red if the bookmark is a breakpoint. This is because
|
|
|
|
|
/// there are two bookmark managers, one in SharpDevelop itself and one
|
|
|
|
|
/// in the TextEditor library. By default, only the one in the text editor's
|
|
|
|
|
/// bookmark manager will be removed, so SharpDevelop will not know about it.
|
|
|
|
|
/// Removing it from the SharpDevelop BookMarkManager informs the debugger
|
|
|
|
|
/// service that the breakpoint has been removed so it triggers the removal
|
|
|
|
|
/// of the text marker.
|
|
|
|
|
/// </summary>
|
|
|
|
|
void BookmarkRemoved(object sender, ICSharpCode.TextEditor.Document.BookmarkEventArgs e) |
|
|
|
|
{ |
|
|
|
|
ICSharpCode.SharpDevelop.Bookmarks.SDBookmark b = e.Bookmark as ICSharpCode.SharpDevelop.Bookmarks.SDBookmark; |
|
|
|
|
if (b != null) { |
|
|
|
|
ICSharpCode.SharpDevelop.Bookmarks.BookmarkManager.RemoveMark(b); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|