GoToDefinitionMouseProcessor(IWpfTextView textView, TextViewConnectionListener textViewConnectionListener, IViewTagAggregatorFactoryService viewTagAggregatorFactoryService) { _textView = textView; _tagAggregator = viewTagAggregatorFactoryService.CreateTagAggregator<GoToDefinitionTag>(textView); _keyState = ModifierKeyState.GetStateForView(textView, textViewConnectionListener); _textView.LostAggregateFocus += OnTextViewLostAggregateFocus; _keyState.KeyStateChanged += OnKeyStateChanged; textViewConnectionListener.AddDisconnectAction(textView, RemoveMouseProcessorForView); }
GoToDefinitionKeyProcessor(IWpfTextView textView, TextViewConnectionListener textViewConnectionListener) { _keyState = ModifierKeyState.GetStateForView(textView, textViewConnectionListener); textViewConnectionListener.AddDisconnectAction(textView, RemoveKeyProcessorForView); }