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

BreakpointManagerService.cs « MonoDevelop.Debugger.VSTextView « MonoDevelop.Debugger « addins « src « main - github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 22b4c551dc712145546c58c281ea18ed2327557f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System;
using System.ComponentModel.Composition;
using Microsoft.VisualStudio.Text.Editor;

namespace MonoDevelop.Debugger
{
	static class BreakpointManagerService
	{
		public static BreakpointManager GetBreakpointManager (ITextView textView)
		{
			return textView.Properties.GetOrCreateSingletonProperty (delegate {
				var manager = new BreakpointManager (textView.TextBuffer);
				textView.Closed += delegate { manager.Dispose (); };
				return manager;
			});
		}
	}
}