Exemple #1
0
 public void OnEvent(DocumentViewerEventArgs e)
 {
     if (e.EventType == DocumentViewerEvent.GotNewContent)
     {
         bracePairServiceProvider.GetBracePairService(e.DocumentViewer.TextView).SetBracePairCollection(e.DocumentViewer.Content.GetCustomData <BracePairCollection>(DocumentViewerContentDataIds.BracePair));
     }
 }
Exemple #2
0
 public ITagger <T> CreateTagger <T>(ITextView textView, ITextBuffer buffer) where T : ITag
 {
     if (textView.TextBuffer != buffer)
     {
         return(null);
     }
     return(textView.Properties.GetOrCreateSingletonProperty(typeof(BracePairViewTagger), () => new BracePairViewTagger(textView, bracePairServiceProvider.GetBracePairService(textView))) as ITagger <T>);
 }