Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <llsan@microsoft.com>2019-03-21 16:27:51 +0300
committerLluis Sanchez <llsan@microsoft.com>2019-03-21 16:27:51 +0300
commita10ba4f238ed02ff99b7f0516d6b6cce04d07701 (patch)
treeacb3579ce21adab9a2e847ffcb66f2497e289de4 /main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.VSTextView
parent113d52ee8172ab53965220731ffe2da394c02617 (diff)
Initial integration of new text editor into new document model
Diffstat (limited to 'main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.VSTextView')
-rw-r--r--main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.VSTextView/Glyphs/BreakpointGlyphMouseProcessor.cs7
1 files changed, 4 insertions, 3 deletions
diff --git a/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.VSTextView/Glyphs/BreakpointGlyphMouseProcessor.cs b/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.VSTextView/Glyphs/BreakpointGlyphMouseProcessor.cs
index d356e4b7be..2e310cfa83 100644
--- a/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.VSTextView/Glyphs/BreakpointGlyphMouseProcessor.cs
+++ b/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.VSTextView/Glyphs/BreakpointGlyphMouseProcessor.cs
@@ -15,6 +15,7 @@ using MonoDevelop.Debugger;
using MonoDevelop.Ide.Gui;
using MonoDevelop.Ide;
using MonoDevelop.Ide.Editor;
+using MonoDevelop.Ide.Gui.Documents;
namespace MonoDevelop.Debugger
{
@@ -126,12 +127,12 @@ namespace MonoDevelop.Debugger
var textViewLine = GetTextViewLine (mouseUpLocation.Y);
if (!textViewLine.Extent.Contains (textViewHost.TextView.Caret.Position.BufferPosition))
textViewHost.TextView.Caret.MoveTo (textViewLine.Start);
- var view = (ViewContent)textViewHost.TextView.Properties [typeof (ViewContent)];
- var ctx = view.WorkbenchWindow?.ExtensionContext ?? Mono.Addins.AddinManager.AddinEngine;
+ var controller = (DocumentController)textViewHost.TextView.Properties [typeof (DocumentController)];
+ var ctx = controller.ExtensionContext;
var cset = IdeApp.CommandService.CreateCommandEntrySet (ctx, "/MonoDevelop/SourceEditor2/IconContextMenu/Editor");
var pt = ((NSEvent)e.Event).LocationInWindow;
pt = textViewHost.TextView.VisualElement.ConvertPointFromView (pt, null);
- IdeApp.CommandService.ShowContextMenu (textViewHost.TextView.VisualElement, (int)pt.X, (int)pt.Y, cset, view);
+ IdeApp.CommandService.ShowContextMenu (textViewHost.TextView.VisualElement, (int)pt.X, (int)pt.Y, cset, controller);
}
public override void PostprocessMouseLeftButtonUp (MouseEvent e)