GoToMouseProcessor(IWpfTextView textView, TextViewConnectionListener textViewConnectionListener, IViewTagAggregatorFactoryService viewTagAggregatorFactoryService, GoToLocationService goToLocationService) { _textView = textView; _goToLocationService = goToLocationService; _tagAggregator = viewTagAggregatorFactoryService.CreateTagAggregator<GoToTag>(textView); _keyState = ModifierKeyState.GetStateForView(textView, textViewConnectionListener); _textView.LostAggregateFocus += OnTextViewLostAggregateFocus; _keyState.KeyStateChanged += OnKeyStateChanged; textViewConnectionListener.AddDisconnectAction(textView, RemoveMouseProcessorForView); }
GoToKeyProcessor(IWpfTextView textView, TextViewConnectionListener textViewConnectionListener) { _keyState = ModifierKeyState.GetStateForView(textView, textViewConnectionListener); textViewConnectionListener.AddDisconnectAction(textView, RemoveKeyProcessorForView); }