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; }
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(); }
/// <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(); }
public AbstractOleCommandTarget( IWpfTextView wpfTextView, IEditorCommandHandlerServiceFactory commandHandlerServiceFactory, IVsEditorAdaptersFactoryService editorAdaptersFactory) { Contract.ThrowIfNull(wpfTextView); Contract.ThrowIfNull(commandHandlerServiceFactory); Contract.ThrowIfNull(editorAdaptersFactory); WpfTextView = wpfTextView; _commandHandlerServiceFactory = commandHandlerServiceFactory; _editorAdaptersFactory = editorAdaptersFactory; }
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; }
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; }
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) { }
public SaveCommandHandler(IEditorCommandHandlerServiceFactory editorCommandHandlerServiceFactory) { _editorCommandHandlerServiceFactory = editorCommandHandlerServiceFactory; }
public SaveHandler(IEditorCommandHandlerServiceFactory commandService) { _commandService = commandService; }