public void VsTextViewCreated(IVsTextView textViewAdapter) { IWpfTextView view = AdaptersFactory.GetWpfTextView(textViewAdapter); Debug.WriteLineIf(view != null, "No WPF editor view found"); if (view == null) return; var languageService = GherkinLanguageServiceFactory.GetLanguageService(view.TextBuffer); var commandFilter = new EditorCommandFilter(view, languageService); IOleCommandTarget next; textViewAdapter.AddCommandFilter(commandFilter, out next); commandFilter.Next = next; }
public void VsTextViewCreated(IVsTextView textViewAdapter) { IWpfTextView view = AdaptersFactory.GetWpfTextView(textViewAdapter); Debug.WriteLineIf(view != null, "No WPF editor view found"); if (view == null) { return; } var languageService = GherkinLanguageServiceFactory.GetLanguageService(view.TextBuffer); var commandFilter = new EditorCommandFilter(view, languageService); IOleCommandTarget next; textViewAdapter.AddCommandFilter(commandFilter, out next); commandFilter.Next = next; }
public EditorCommandFilterInstance(EditorCommandFilter commandFilter, GherkinEditorContext editorContext) { this.commandFilter = commandFilter; this.editorContext = editorContext; }
public EditorCommandFilterInstance(EditorCommandFilter commandFilter, GherkinEditorContext editorContext) { this.commandFilter = commandFilter; this.editorContext = editorContext; }