public BreakpointGlyphTagger(ITextDocumentFactoryService textDocumentFactoryService, ITextView textView, BreakpointManager breakpointManager)
 {
     this.breakpointManager                = breakpointManager;
     this.textView                         = textView;
     this.textDocumentFactoryService       = textDocumentFactoryService;
     breakpointManager.BreakpointsChanged += BreakpointManager_BreakpointsChanged;
     this.textView.Closed                 += (s, e) => this.breakpointManager.BreakpointsChanged -= BreakpointManager_BreakpointsChanged;
 }
Esempio n. 2
0
 public static BreakpointManager GetBreakpointManager(ITextView textView)
 {
     return(textView.Properties.GetOrCreateSingletonProperty(delegate {
         var manager = new BreakpointManager(textView.TextBuffer);
         textView.Closed += delegate { manager.Dispose(); };
         return manager;
     }));
 }
Esempio n. 3
0
 public BreakpointForegroundTagger(
     ClassificationTag tag,
     ClassificationTag disabled,
     ClassificationTag invalid,
     ITextView textView,
     BreakpointManager breakpointManager)
     : base(tag, disabled, invalid, textView, breakpointManager)
 {
 }
 public AbstractBreakpointTagger(
     T tag, T disabled, T invalid, ITextView textView, BreakpointManager breakpointManager)
 {
     this.breakpointManager = breakpointManager;
     this.textView          = textView;
     this.tag      = tag;
     this.disabled = disabled;
     this.invalid  = invalid;
     breakpointManager.BreakpointsChanged += BreakpointManager_BreakpointsChanged;
     this.textView.Closed += (s, e) => this.breakpointManager.BreakpointsChanged -= BreakpointManager_BreakpointsChanged;
 }
Esempio n. 5
0
 public BreakpointTagger(ITextView textView, BreakpointManager breakpointManager)
     : base(BreakpointTag.Instance, BreakpointDisabledTag.Instance, BreakpointInvalidTag.Instance, textView, breakpointManager)
 {
 }