Browse Source

Use ITextEditorControlProvider in DebuggerService.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/2.0@1312 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 20 years ago
parent
commit
6b04871a27
  1. 9
      src/Main/Base/Project/Src/Services/Debugger/DebuggerService.cs

9
src/Main/Base/Project/Src/Services/Debugger/DebuggerService.cs

@ -20,6 +20,7 @@ using ICSharpCode.TextEditor; @@ -20,6 +20,7 @@ using ICSharpCode.TextEditor;
using System.Drawing;
using System.Windows.Forms;
using BM = ICSharpCode.SharpDevelop.Bookmarks;
using ITextEditorControlProvider = ICSharpCode.SharpDevelop.DefaultEditor.Gui.Editor.ITextEditorControlProvider;
namespace ICSharpCode.Core
{
@ -237,8 +238,8 @@ namespace ICSharpCode.Core @@ -237,8 +238,8 @@ namespace ICSharpCode.Core
static void ViewContentOpened(object sender, ViewContentEventArgs e)
{
if (e.Content.Control is TextEditor.TextEditorControl) {
TextArea textArea = ((TextEditor.TextEditorControl)e.Content.Control).ActiveTextAreaControl.TextArea;
if (e.Content is ITextEditorControlProvider) {
TextArea textArea = ((ITextEditorControlProvider)e.Content).TextEditorControl.ActiveTextAreaControl.TextArea;
textArea.IconBarMargin.MouseDown += IconBarMouseDown;
textArea.ToolTipRequest += TextAreaToolTipRequest;
@ -248,8 +249,8 @@ namespace ICSharpCode.Core @@ -248,8 +249,8 @@ namespace ICSharpCode.Core
static void ViewContentClosed(object sender, ViewContentEventArgs e)
{
if (e.Content.Control is TextEditor.TextEditorControl) {
TextArea textArea = ((TextEditor.TextEditorControl)e.Content.Control).ActiveTextAreaControl.TextArea;
if (e.Content is ITextEditorControlProvider) {
TextArea textArea = ((ITextEditorControlProvider)e.Content).TextEditorControl.ActiveTextAreaControl.TextArea;
textArea.IconBarMargin.MouseDown -= IconBarMouseDown;
textArea.ToolTipRequest -= TextAreaToolTipRequest;

Loading…
Cancel
Save