void ActiveEditorChanged(object sender, ActiveEditorChangedEventArgs e) { if (e.OldView != null) { e.OldView.Caret.PositionChanged -= CaretPositionChanged; } aggregator?.Dispose(); if (e.NewView != null) { e.NewView.Caret.PositionChanged += CaretPositionChanged; aggregator = tagAggregatorFactoryService.CreateTagAggregator <ITag> (e.NewView); aggregator.BatchedTagsChanged += BatchedTagsChanged; } Update(); }
public void Dispose() { _textView.Properties.RemoveProperty(this); _textView.Closed -= OnTextViewClosed; _textView.TextBuffer.Changed -= OnTextBufferChanged; _errorTagAggregator.BatchedTagsChanged -= OnBatchedTagsChanged; _errorTagAggregator?.Dispose(); }
public void Dispose() { wpfTextViewHost.TextView.Options.OptionChanged -= Options_OptionChanged; wpfTextViewHost.TextView.ZoomLevelChanged -= TextView_ZoomLevelChanged; IsVisibleChanged -= GlyphMargin_IsVisibleChanged; UnregisterEvents(); lineInfos?.Clear(); iconCanvas?.Children.Clear(); mouseProcessorCollection?.Dispose(); tagAggregator?.Dispose(); }
public MarkerToolTipHandler(MarkerToolTipHandlerProvider provider, ThreadFixPlugin threadFixPlugin, IWpfTextViewHost wpfTextViewHost, IWpfTextViewMargin margin) { _threadFixPlugin = threadFixPlugin; _textViewHost = wpfTextViewHost; _margin = margin; _glyphTagAggregator = provider.ViewTagAggregatorFactoryService.CreateTagAggregator<MarkerTag>(wpfTextViewHost.TextView); _popup = new Popup { IsOpen = false, Visibility = Visibility.Hidden }; _textViewHost.Closed += (sender, e) => _glyphTagAggregator.Dispose(); }
public void Dispose() { if (!disposed) { disposed = true; textView.LayoutChanged -= OnLayoutChanged; textView.ZoomLevelChanged -= OnZoomLevelChanged; tagAggregator?.Dispose(); tagAggregator = null; visibleSubscription?.Dispose(); visibleSubscription = null; } }
public InheritanceGlyphMouseHandler(InheritanceGlyphMouseHandlerProvider provider, IWpfTextViewHost textViewHost, IWpfTextViewMargin margin) { if (provider == null) throw new ArgumentNullException("provider"); if (textViewHost == null) throw new ArgumentNullException("textViewHost"); if (margin == null) throw new ArgumentNullException("margin"); _provider = provider; _textViewHost = textViewHost; _margin = margin; _glyphTagAggregator = provider.ViewTagAggregatorFactoryService.CreateTagAggregator<IInheritanceTag>(textViewHost.TextView); _popup = new Popup() { IsOpen = false, Visibility = Visibility.Hidden }; _lastLeftButtonWasDoubleClick = true; _textViewHost.Closed += (sender, e) => _glyphTagAggregator.Dispose(); }
public void Dispose() { _commentTagger.Dispose(); }
public void Dispose() { _aggregator.Dispose(); _view.Properties.RemoveProperty(typeof(ErrorModelTagger)); }
public void Dispose() { tagAggregator.TagsChanged -= TagAggregator_TagsChanged; tagAggregator.Dispose(); }
public void Dispose() { tagAggregator.Dispose(); GC.SuppressFinalize(this); }
public void Dispose() { _classificationTagAggregator.Dispose(); }
public virtual void Dispose() { DataTagger.Dispose(); }
public void Dispose() { paramStorageTagger.Dispose(); view.Properties.RemoveProperty(typeof(ParamStorageAdornmentTagger)); }
public void Dispose() { _tagAggregator.TagsChanged -= OnTagAggregatorTagsChanged; _tagAggregator.Dispose(); _formatMap.ClassificationFormatMappingChanged -= OnClassificationFormatMappingChanged; }
public void Dispose() { _alertTagger.Dispose(); view.Properties.RemoveProperty(typeof(AlertAdornmentTagger)); }
public void Dispose() { _tagAggregator.Dispose(); view.Properties.RemoveProperty(typeof(EditDocumentationAdornmentTagger)); }
public void Dispose() { _performanceTagAggregator.Dispose(); View.Properties.RemoveProperty(typeof(PerformanceAdornmentTagger)); }