コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CompletionCommandHandler"/> class.
        /// </summary>
        /// <param name="textViewAdapter">The text view adapter.</param>
        /// <param name="textView">The text view.</param>
        /// <param name="provider">The provider.</param>
        internal CompletionCommandHandler( IVsTextView textViewAdapter,
            IWpfTextView textView,
            CompletionHandlerProvider provider)
        {
            _TextView = textView;
            _CompletionHandlerProvider = provider;

            //add the command to the command chain
            textViewAdapter.AddCommandFilter( this, out _NextCommandHandler );
        }
コード例 #2
0
 internal CompletionCommandHandler(IVsTextView textViewAdapter, ITextView textView, CompletionHandlerProvider provider)
 {
     this.TextView = textView;
     this.Provider = provider;
     textViewAdapter.AddCommandFilter(this, out NextCommandHandler);
 }