Esempio n. 1
0
 public GoToDefMouseHandler(IWpfTextView view, IOleCommandTarget commandTarget, IClassifier aggregator,
                            ITextStructureNavigator navigator, CtrlKeyState state)
 {
     _view          = view;
     _commandTarget = commandTarget;
     _aggregator    = aggregator;
     _navigator     = navigator;
     _state         = state;
 }
Esempio n. 2
0
        public IMouseProcessor GetAssociatedProcessor(IWpfTextView view)
        {
            var buffer = view.TextBuffer;

            IOleCommandTarget shellCommandDispatcher = GetShellCommandDispatcher(view);

            if (shellCommandDispatcher == null)
            {
                return(null);
            }

            return(new GoToDefMouseHandler(view,
                                           shellCommandDispatcher,
                                           _aggregatorFactory.GetClassifier(buffer),
                                           _navigatorService.GetTextStructureNavigator(buffer),
                                           CtrlKeyState.GetStateForView(view)));
        }
 public GoToDefKeyProcessor(CtrlKeyState state)
 {
     _state = state;
 }
 public GoToDefMouseHandler(IWpfTextView view, IOleCommandTarget commandTarget, IClassifier aggregator,
                            ITextStructureNavigator navigator, CtrlKeyState state)
 {
     _view = view;
     _commandTarget = commandTarget;
     _aggregator = aggregator;
     _navigator = navigator;
     _state = state;
 }
Esempio n. 5
0
 public GoToDefKeyProcessor(CtrlKeyState state)
 {
     _state = state;
 }
Esempio n. 6
0
 public KeyProcessor GetAssociatedProcessor(IWpfTextView view)
 {
     return(view.Properties.GetOrCreateSingletonProperty(typeof(GoToDefKeyProcessor),
                                                         () => new GoToDefKeyProcessor(CtrlKeyState.GetStateForView(view))));
 }