Example #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));
     }
 }
Example #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>);
 }