public GoToDefMouseHandler(IWpfTextView view, IOleCommandTarget commandTarget, IClassifier aggregator, ITextStructureNavigator navigator, CtrlKeyState state) { _view = view; _commandTarget = commandTarget; _aggregator = aggregator; _navigator = navigator; _state = state; }
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; }
public GoToDefKeyProcessor(CtrlKeyState state) { _state = state; }
public KeyProcessor GetAssociatedProcessor(IWpfTextView view) { return(view.Properties.GetOrCreateSingletonProperty(typeof(GoToDefKeyProcessor), () => new GoToDefKeyProcessor(CtrlKeyState.GetStateForView(view)))); }