Beispiel #1
0
 public LineSeparatorViewTagger(ITextView textView)
 {
     if (textView == null)
     {
         throw new ArgumentNullException(nameof(textView));
     }
     this.textView = textView;
     this.lineSeparatorCollection = LineSeparatorCollection.Empty;
     textView.Closed += TextView_Closed;
 }
Beispiel #2
0
 public void SetLineSeparatorCollection(LineSeparatorCollection coll)
 {
     if (textView.IsClosed)
     {
         return;
     }
     if (coll == null)
     {
         coll = LineSeparatorCollection.Empty;
     }
     if (lineSeparatorCollection == coll)
     {
         return;
     }
     lineSeparatorCollection = coll;
     RefreshAllTags();
 }
Beispiel #3
0
 void TextView_Closed(object sender, EventArgs e)
 {
     lineSeparatorCollection = LineSeparatorCollection.Empty;
     textView.Closed        -= TextView_Closed;
 }