Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        public void Dispose()
        {
            _textView.Properties.RemoveProperty(this);

            _textView.Closed                       -= OnTextViewClosed;
            _textView.TextBuffer.Changed           -= OnTextBufferChanged;
            _errorTagAggregator.BatchedTagsChanged -= OnBatchedTagsChanged;
            _errorTagAggregator?.Dispose();
        }
Esempio n. 3
0
 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();
 }
Esempio n. 4
0
        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();
        }
Esempio n. 5
0
        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();
        }
Esempio n. 7
0
 public void Dispose()
 {
     _commentTagger.Dispose();
 }
Esempio n. 8
0
 public void Dispose()
 {
     _aggregator.Dispose();
     _view.Properties.RemoveProperty(typeof(ErrorModelTagger));
 }
 public void Dispose()
 {
     tagAggregator.TagsChanged -= TagAggregator_TagsChanged;
     tagAggregator.Dispose();
 }
Esempio n. 10
0
 public void Dispose()
 {
     tagAggregator.Dispose();
     GC.SuppressFinalize(this);
 }
Esempio n. 11
0
 public void Dispose()
 {
     _classificationTagAggregator.Dispose();
 }
 public virtual void Dispose()
 {
     DataTagger.Dispose();
 }
Esempio n. 13
0
        public void Dispose()
        {
            paramStorageTagger.Dispose();

            view.Properties.RemoveProperty(typeof(ParamStorageAdornmentTagger));
        }
Esempio n. 14
0
 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));
 }