Inheritance: IVsTextViewCreationListener
Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CompletionHandler"/> class.
        /// </summary>
        /// <param name="textViewAdapter">The text view adapter.</param>
        /// <param name="textView">The text viewer.</param>
        /// <param name="provider">The provider.</param>
        internal CompletionHandler(IVsTextView textViewAdapter, ITextView textView, CompletionHandlerProvider provider)
        {
            this.textView = textView;
            this.provider = provider;

            // add the command to the command chain
            textViewAdapter.AddCommandFilter(this, out nextCommandHandler);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="CompletionHandler"/> class.
        /// </summary>
        /// <param name="textViewAdapter">The text view adapter.</param>
        /// <param name="textView">The text viewer.</param>
        /// <param name="provider">The provider.</param>
        internal CompletionHandler(IVsTextView textViewAdapter, ITextView textView, CompletionHandlerProvider provider)
        {
            this.textView = textView;
            this.provider = provider;

            // add the command to the command chain
            textViewAdapter.AddCommandFilter(this, out nextCommandHandler);
        }