示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="EventControllerBase"/> class.
        /// </summary>
        /// <param name="serviceProvider">The service provider.</param>
        /// <param name="errorListProvider">The error list provider.</param>
        /// <param name="visualStudioJSLintProvider">The Visual Studio JSLint provider.</param>
        public EventControllerBase(IServiceProvider serviceProvider, IJSLintErrorListProvider errorListProvider, IVisualStudioJSLintProvider visualStudioJSLintProvider)
        {
            this.ServiceProvider = serviceProvider;
            this.ErrorListProvider = errorListProvider;
            this.VisualStudioJSLintProvider = visualStudioJSLintProvider;

            this.Environment = this.ServiceProvider.GetService<DTE, DTE2>();
        }
 public MenuEventController(IServiceProvider serviceProvider, IJSLintErrorListProvider errorListProvider, IVisualStudioJSLintProvider visualStudioJSLintProvider, IViewFactory viewFactory)
     : base(serviceProvider, errorListProvider, visualStudioJSLintProvider)
 {
     this.viewFactory = viewFactory;
     this.menuService = serviceProvider.GetService <IMenuCommandService>();
 }
示例#3
0
 public BuildEventController(IServiceProvider serviceProvider, IJSLintErrorListProvider errorListProvider, IBuildProjectManager buildProjectManager, IVisualStudioJSLintProvider visualStudioJSLintProvider)
     : base(serviceProvider, errorListProvider, visualStudioJSLintProvider)
 {
     this.buildProjectManager = buildProjectManager;
     this.buildEvents         = this.Environment.Events.BuildEvents;
 }
示例#4
0
 public BuildEventController(IServiceProvider serviceProvider, IJSLintErrorListProvider errorListProvider, IBuildProjectManager buildProjectManager, IVisualStudioJSLintProvider visualStudioJSLintProvider)
     : base(serviceProvider, errorListProvider, visualStudioJSLintProvider)
 {
     this.buildProjectManager = buildProjectManager;
     this.buildEvents = this.Environment.Events.BuildEvents;
 }
 public DocumentEventController(IServiceProvider serviceProvider, IJSLintErrorListProvider errorListProvider, IVisualStudioJSLintProvider visualStudioJSLintProvider)
     : base(serviceProvider, errorListProvider, visualStudioJSLintProvider)
 {
     this.documentEvents = this.Environment.Events.DocumentEvents;
 }
示例#6
0
 public MenuEventController(IServiceProvider serviceProvider, IJSLintErrorListProvider errorListProvider, IVisualStudioJSLintProvider visualStudioJSLintProvider, IViewFactory viewFactory)
     : base(serviceProvider, errorListProvider, visualStudioJSLintProvider)
 {
     this.viewFactory = viewFactory;
     this.menuService = serviceProvider.GetService<IMenuCommandService>();
 }
示例#7
0
        /// <summary>
        /// Initializes a new instance of the <see cref="EventControllerBase"/> class.
        /// </summary>
        /// <param name="serviceProvider">The service provider.</param>
        /// <param name="errorListProvider">The error list provider.</param>
        /// <param name="visualStudioJSLintProvider">The Visual Studio JSLint provider.</param>
        public EventControllerBase(IServiceProvider serviceProvider, IJSLintErrorListProvider errorListProvider, IVisualStudioJSLintProvider visualStudioJSLintProvider)
        {
            this.ServiceProvider            = serviceProvider;
            this.ErrorListProvider          = errorListProvider;
            this.VisualStudioJSLintProvider = visualStudioJSLintProvider;

            this.Environment = this.ServiceProvider.GetService <DTE, DTE2>();
        }