public static GoToMouseProcessor GetMouseProcessorForView(IWpfTextView textView, 
                                                                  TextViewConnectionListener textViewConnectionListener,
                                                                  IViewTagAggregatorFactoryService viewTagAggregatorFactoryService,
                                                                  GoToLocationService goToLocationService) {

            return textView.Properties.GetOrCreateSingletonProperty(() => new GoToMouseProcessor(textView, textViewConnectionListener, viewTagAggregatorFactoryService, goToLocationService));
        }
        public GoToMouseProcessorProvider(TextViewConnectionListener textViewConnectionListener,
                                          IViewTagAggregatorFactoryService viewTagAggregatorFactoryService,
                                          GoToLocationService goToLocationService) {

            _textViewConnectionListener      = textViewConnectionListener;
            _viewTagAggregatorFactoryService = viewTagAggregatorFactoryService;
            _goToLocationService             = goToLocationService;
        }
        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);
        }
        public CodeContentControlProvider(ITextEditorFactoryService textEditorFactory, 
                                          IProjectionBufferFactoryService projectionFactory, 
                                          TextViewConnectionListener textViewConnectionListener, 
                                          ITextBufferFactoryService textBufferFactoryService, 
                                          ITextEditorFactoryService textEditorFactoryService) {

            _textEditorFactory          = textEditorFactory;
            _projectionFactory          = projectionFactory;
            _textViewConnectionListener = textViewConnectionListener;
            _textBufferFactoryService   = textBufferFactoryService;
            _textEditorFactoryService   = textEditorFactoryService;
        }
 public static GoToKeyProcessor GetKeyProcessorForView(IWpfTextView textView, TextViewConnectionListener textViewConnectionListener) {
     return textView.Properties.GetOrCreateSingletonProperty(() => new GoToKeyProcessor(textView, textViewConnectionListener));
 }
 GoToKeyProcessor(IWpfTextView textView, TextViewConnectionListener textViewConnectionListener) {
     _keyState = ModifierKeyState.GetStateForView(textView, textViewConnectionListener);
     textViewConnectionListener.AddDisconnectAction(textView, RemoveKeyProcessorForView);
 }
 public GoToDefinitionMouseProcessorProvider(TextViewConnectionListener textViewConnectionListener,
                                         IViewTagAggregatorFactoryService viewTagAggregatorFactoryService) {
     _textViewConnectionListener      = textViewConnectionListener;
     _viewTagAggregatorFactoryService = viewTagAggregatorFactoryService;
 }
 public GoToDefinitionKeyProcessorProvider(TextViewConnectionListener textViewConnectionListener) {
     _textViewConnectionListener = textViewConnectionListener;
 }
 public static ModifierKeyState GetStateForView(IWpfTextView textView, TextViewConnectionListener textViewConnectionListener) {
     return textView.Properties.GetOrCreateSingletonProperty(() => new ModifierKeyState(textView, textViewConnectionListener));
 }
 ModifierKeyState(IWpfTextView textView, TextViewConnectionListener textViewConnectionListener) {
     textViewConnectionListener.AddDisconnectAction(textView, RemoveStateForView);
 }