예제 #1
0
 public void OnEvent(DocumentViewerEventArgs e)
 {
     if (e.EventType == DocumentViewerEvent.GotNewContent)
     {
         LineSeparatorViewTagger.GetInstance(e.DocumentViewer.TextView).SetLineSeparatorCollection(e.DocumentViewer.Content.GetCustomData <LineSeparatorCollection>(DocumentViewerContentDataIds.LineSeparator));
     }
 }
예제 #2
0
 public ITagger <T>?CreateTagger <T>(ITextView textView, ITextBuffer buffer) where T : ITag
 {
     if (textView.TextBuffer != buffer)
     {
         return(null);
     }
     return(LineSeparatorViewTagger.GetInstance(textView) as ITagger <T>);
 }