コード例 #1
0
 public AbstractSnippetCommandHandler(IThreadingContext threadingContext, SignatureHelpControllerProvider signatureHelpControllerProvider, IEditorCommandHandlerServiceFactory editorCommandHandlerServiceFactory, IVsEditorAdaptersFactoryService editorAdaptersFactoryService, SVsServiceProvider serviceProvider)
     : base(threadingContext)
 {
     this.SignatureHelpControllerProvider    = signatureHelpControllerProvider;
     this.EditorCommandHandlerServiceFactory = editorCommandHandlerServiceFactory;
     this.EditorAdaptersFactoryService       = editorAdaptersFactoryService;
     this.ServiceProvider = serviceProvider;
 }
コード例 #2
0
 public SnippetCommandHandler(
     IThreadingContext threadingContext,
     SignatureHelpControllerProvider signatureHelpControllerProvider,
     IEditorCommandHandlerServiceFactory editorCommandHandlerServiceFactory,
     IVsEditorAdaptersFactoryService editorAdaptersFactoryService,
     SVsServiceProvider serviceProvider,
     [ImportMany] IEnumerable <Lazy <ArgumentProvider, OrderableLanguageMetadata> > argumentProviders)
     : base(threadingContext, signatureHelpControllerProvider, editorCommandHandlerServiceFactory, editorAdaptersFactoryService, serviceProvider)
 {
     _argumentProviders = argumentProviders.ToImmutableArray();
 }
コード例 #3
0
        /// <summary>
        /// Creates a new command handler that is attached to an IVsTextView.
        /// </summary>
        /// <param name="wpfTextView">The IWpfTextView of the view.</param>
        /// <param name="commandHandlerServiceFactory">The MEF imported ICommandHandlerServiceFactory.</param>
        /// <param name="editorAdaptersFactoryService">The editor adapter</param>
        internal StandaloneCommandFilter(
            IWpfTextView wpfTextView,
            IEditorCommandHandlerServiceFactory commandHandlerServiceFactory,
            IVsEditorAdaptersFactoryService editorAdaptersFactoryService)
            : base(wpfTextView, commandHandlerServiceFactory, editorAdaptersFactoryService)
        {
            wpfTextView.Closed += OnTextViewClosed;
            wpfTextView.BufferGraph.GraphBufferContentTypeChanged += OnGraphBuffersChanged;
            wpfTextView.BufferGraph.GraphBuffersChanged           += OnGraphBuffersChanged;

            RefreshCommandFilters();
        }
コード例 #4
0
        public AbstractOleCommandTarget(
            IWpfTextView wpfTextView,
            IEditorCommandHandlerServiceFactory commandHandlerServiceFactory,
            IVsEditorAdaptersFactoryService editorAdaptersFactory)
        {
            Contract.ThrowIfNull(wpfTextView);
            Contract.ThrowIfNull(commandHandlerServiceFactory);
            Contract.ThrowIfNull(editorAdaptersFactory);

            WpfTextView = wpfTextView;
            _commandHandlerServiceFactory = commandHandlerServiceFactory;
            _editorAdaptersFactory        = editorAdaptersFactory;
        }
コード例 #5
0
 public AbstractSnippetCommandHandler(
     IThreadingContext threadingContext,
     SignatureHelpControllerProvider signatureHelpControllerProvider,
     IEditorCommandHandlerServiceFactory editorCommandHandlerServiceFactory,
     IVsEditorAdaptersFactoryService editorAdaptersFactoryService,
     IGlobalOptionService globalOptions,
     SVsServiceProvider serviceProvider)
     : base(threadingContext)
 {
     SignatureHelpControllerProvider    = signatureHelpControllerProvider;
     EditorCommandHandlerServiceFactory = editorCommandHandlerServiceFactory;
     EditorAdaptersFactoryService       = editorAdaptersFactoryService;
     ServiceProvider = serviceProvider;
     GlobalOptions   = globalOptions;
 }
コード例 #6
0
        public AbstractOleCommandTarget(
            IWpfTextView wpfTextView,
            IEditorCommandHandlerServiceFactory commandHandlerServiceFactory,
            IVsEditorAdaptersFactoryService editorAdaptersFactory,
            System.IServiceProvider serviceProvider)
        {
            Contract.ThrowIfNull(wpfTextView);
            Contract.ThrowIfNull(commandHandlerServiceFactory);
            Contract.ThrowIfNull(editorAdaptersFactory);
            Contract.ThrowIfNull(serviceProvider);

            _wpfTextView = wpfTextView;
            _commandHandlerServiceFactory = commandHandlerServiceFactory;
            _editorAdaptersFactory        = editorAdaptersFactory;
            _serviceProvider = serviceProvider;
        }
コード例 #7
0
 public SnippetExpansionClient(
     IThreadingContext threadingContext,
     Guid languageServiceGuid,
     ITextView textView,
     ITextBuffer subjectBuffer,
     SignatureHelpControllerProvider signatureHelpControllerProvider,
     IEditorCommandHandlerServiceFactory editorCommandHandlerServiceFactory,
     IVsEditorAdaptersFactoryService editorAdaptersFactoryService,
     ImmutableArray <Lazy <ArgumentProvider, OrderableLanguageMetadata> > argumentProviders)
     : base(
         threadingContext,
         languageServiceGuid,
         textView,
         subjectBuffer,
         signatureHelpControllerProvider,
         editorCommandHandlerServiceFactory,
         editorAdaptersFactoryService,
         argumentProviders)
 {
 }
コード例 #8
0
 public SaveCommandHandler(IEditorCommandHandlerServiceFactory editorCommandHandlerServiceFactory)
 {
     _editorCommandHandlerServiceFactory = editorCommandHandlerServiceFactory;
 }
コード例 #9
0
 public SaveHandler(IEditorCommandHandlerServiceFactory commandService)
 {
     _commandService = commandService;
 }