/// <summary>
 /// The update services.
 /// </summary>
 /// <param name="vsenvironmenthelperIn">The vsenvironmenthelper in.</param>
 /// <param name="statusBar">The status bar.</param>
 /// <param name="provider">The provider.</param>
 public void UpdateServices(
     IVsEnvironmentHelper vsenvironmenthelperIn,
     IVSSStatusBar statusBar,
     IServiceProvider provider)
 {
     // does not access vs services
 }
Esempio n. 2
0
 /// <summary>
 /// The update services.
 /// </summary>
 /// <param name="vsenvironmenthelperIn">The vsenvironmenthelper in.</param>
 /// <param name="statusBar">The status bar.</param>
 /// <param name="provider">The provider.</param>
 public void UpdateServices(
     IVsEnvironmentHelper vsenvironmenthelperIn,
     IVSSStatusBar statusBar,
     IServiceProvider provider)
 {
     this.vsenvironmenthelper = vsenvironmenthelperIn;
 }
        /// <summary>The extension data viewModel update.</summary>
        /// <param name="restServiceIn">The rest service in.</param>
        /// <param name="vsenvironmenthelperIn">The vsenvironmenthelper in.</param>
        /// <param name="statusBar">The status bar.</param>
        /// <param name="provider">The provider.</param>
        /// <param name="extensionFolder">The extension Folder.</param>
        public void InitModelFromPackageInitialization(
            ISonarRestService restServiceIn,
            IVsEnvironmentHelper vsenvironmenthelperIn,
            IVSSStatusBar statusBar,
            IServiceProvider provider,
            string extensionFolder)
        {
            this.ServiceProvider     = provider;
            this.SonarRestConnector  = restServiceIn;
            this.VsHelper            = vsenvironmenthelperIn;
            this.StatusBar           = statusBar;
            this.ExtensionFolder     = extensionFolder;
            this.NotificationManager = new NotifyCationManager(this, this.VsHelper);

            this.VSonarQubeOptionsViewData.InitPuginSystem(vsenvironmenthelperIn, this.PluginControl, this.NotificationManager);

            this.InitMenus();
            this.InitViews();
            this.InitConnection();

            this.UpdateTheme(Colors.Black, Colors.White);

            foreach (IAnalysisViewModelBase view in this.SonarQubeViews)
            {
                view.UpdateServices(restServiceIn, vsenvironmenthelperIn, this.configurationHelper, statusBar, provider);
            }

            this.VSonarQubeOptionsViewData.UpdateServices(restServiceIn, vsenvironmenthelperIn, statusBar, provider);
            foreach (IOptionsViewModelBase view in this.VSonarQubeOptionsViewData.AvailableOptions)
            {
                view.UpdateServices(restServiceIn, vsenvironmenthelperIn, this.configurationHelper, statusBar, provider);
            }
        }
        /// <summary>
        /// The extension data viewModel update.
        /// </summary>
        /// <param name="vsenvironmenthelperIn">The vsenvironmenthelper in.</param>
        /// <param name="statusBar">The status bar.</param>
        /// <param name="provider">The provider.</param>
        /// <param name="extensionFolder">The extension Folder.</param>
        public void InitModelFromPackageInitialization(
            IVsEnvironmentHelper vsenvironmenthelperIn,
            IVSSStatusBar statusBar,
            IServiceProvider provider,
            string extensionFolder)
        {
            this.ServiceProvider = provider;
            this.VsHelper        = vsenvironmenthelperIn;
            this.StatusBar       = statusBar;
            this.ExtensionFolder = extensionFolder;

            // register notificaton manager, since all messages will be show also for initialization
            (this.notificationManager as IModelBase).UpdateServices(this.VsHelper, this.StatusBar, this.ServiceProvider);
            this.VSonarQubeOptionsViewData.InitPuginSystem(vsenvironmenthelperIn, this.pluginController, this.notificationManager);
            this.InitMenus();
            this.InitViewsAndModels();

            // start association module after all models are started
            this.AssociationModule = new AssociationModel(
                this.notificationManager,
                this.sonarRestConnector,
                this.configurationHelper,
                this.sonarKeyTranslator,
                this.VSonarQubeOptionsViewData.PluginManager,
                this);

            this.AssociationModule.UpdateServicesInModels(this.VsHelper, this.StatusBar, this.ServiceProvider);
            this.UpdateTheme(Colors.Black, Colors.White);

            // try to connect to start to sonar if on start is on
            if (this.VSonarQubeOptionsViewData.GeneralConfigurationViewModel.IsConnectAtStartOn)
            {
                this.OnConnectToSonar(false);
            }
        }
Esempio n. 5
0
 /// <summary>
 /// The update services.
 /// </summary>
 /// <param name="vsenvironmenthelperIn">The vsenvironmenthelper in.</param>
 /// <param name="statusBarIn">The status bar in.</param>
 /// <param name="provider">The provider.</param>
 public void UpdateServices(
     IVsEnvironmentHelper vsenvironmenthelperIn,
     IVSSStatusBar statusBarIn,
     IServiceProvider provider)
 {
     this.visualStudioHelper = vsenvironmenthelperIn;
     this.statusBar          = statusBarIn;
     this.serviceProvier     = provider;
 }
 /// <summary>
 /// Updates the services.
 /// </summary>
 /// <param name="vsenvironmenthelperIn">The vsenvironmenthelper in.</param>
 /// <param name="statusBar">The status bar.</param>
 /// <param name="provider">The provider.</param>
 public void UpdateServices(IVsEnvironmentHelper vsenvironmenthelperIn, IVSSStatusBar statusBar, IServiceProvider provider)
 {
     this.visualStudioHelper = vsenvironmenthelperIn;
 }
        /// <summary>
        /// The extension data viewModel update.
        /// </summary>
        /// <param name="vsenvironmenthelperIn">The vsenvironmenthelper in.</param>
        /// <param name="statusBar">The status bar.</param>
        /// <param name="provider">The provider.</param>
        /// <param name="extensionFolder">The extension Folder.</param>
        public void InitModelFromPackageInitialization(
            IVsEnvironmentHelper vsenvironmenthelperIn,
            IVSSStatusBar statusBar,
            IServiceProvider provider,
            string extensionFolder)
        {
            this.ServiceProvider = provider;
            this.VsHelper = vsenvironmenthelperIn;
            this.StatusBar = statusBar;
            this.ExtensionFolder = extensionFolder;

            // register notificaton manager, since all messages will be show also for initialization
            (this.notificationManager as IModelBase).UpdateServices(this.VsHelper, this.StatusBar, this.ServiceProvider);
            this.VSonarQubeOptionsViewData.InitPuginSystem(vsenvironmenthelperIn, this.pluginController, this.notificationManager);
            this.InitMenus();
            this.InitViewsAndModels();

            // start association module after all models are started
            this.AssociationModule = new AssociationModel(
                this.notificationManager,
                this.sonarRestConnector,
                this.configurationHelper,
                this.sonarKeyTranslator,
                this.VSonarQubeOptionsViewData.PluginManager,
                this);

            this.AssociationModule.UpdateServicesInModels(this.VsHelper, this.StatusBar, this.ServiceProvider);
            this.UpdateTheme(Colors.Black, Colors.White);

            // try to connect to start to sonar if on start is on
            if (this.VSonarQubeOptionsViewData.GeneralConfigurationViewModel.IsConnectAtStartOn)
            {
                this.OnConnectToSonar(false);
            }
        }
 /// <summary>
 /// Updates the services.
 /// </summary>
 /// <param name="vsenvironmenthelperIn">The vs environment helper in.</param>
 /// <param name="statusBar">The status bar.</param>
 /// <param name="provider">The provider.</param>
 public void UpdateServices(IVsEnvironmentHelper vsenvironmenthelperIn, IVSSStatusBar statusBar, IServiceProvider provider)
 {
     // does not access visual studio services
 }
Esempio n. 9
0
 /// <summary>
 /// Updates the services.
 /// </summary>
 /// <param name="vsenvironmenthelperIn">The vsenvironmenthelper in.</param>
 /// <param name="statusBar">The status bar.</param>
 /// <param name="provider">The provider.</param>
 public void UpdateServicesInModels(IVsEnvironmentHelper vsenvironmenthelperIn, IVSSStatusBar statusBar, IServiceProvider provider)
 {
     this.vshelper = vsenvironmenthelperIn;
     foreach (IModelBase model in modelPool)
     {
         model.UpdateServices(vsenvironmenthelperIn, statusBar, provider);
     }
 }
 /// <summary>
 /// Updates the services.
 /// </summary>
 /// <param name="vsenvironmenthelperIn">The vsenvironmenthelper in.</param>
 /// <param name="statusBar">The status bar.</param>
 /// <param name="provider">The provider.</param>
 public void UpdateServices(IVsEnvironmentHelper vsenvironmenthelperIn, IVSSStatusBar statusBar, IServiceProvider provider)
 {
     // menu not accessing services
 }
 /// <summary>
 /// The update services.
 /// </summary>
 /// <param name="vsenvironmenthelperIn">The vsenvironmenthelper in.</param>
 /// <param name="statusBarIn">The status bar in.</param>
 /// <param name="provider">The provider.</param>
 public void UpdateServices(
     IVsEnvironmentHelper vsenvironmenthelperIn,
     IVSSStatusBar statusBarIn,
     IServiceProvider provider)
 {
     this.vsenvironmenthelper = vsenvironmenthelperIn;
     this.statusBar = statusBarIn;
     this.serviceProvier = provider;
 }
 /// <summary>
 /// Updates the services.
 /// </summary>
 /// <param name="vsenvironmenthelperIn">The vsenvironmenthelper in.</param>
 /// <param name="statusBar">The status bar.</param>
 /// <param name="provider">The provider.</param>
 public void UpdateServicesInModels(IVsEnvironmentHelper vsenvironmenthelperIn, IVSSStatusBar statusBar, IServiceProvider provider)
 {
     this.vshelper = vsenvironmenthelperIn;
     foreach (IModelBase model in modelPool)
     {
         model.UpdateServices(vsenvironmenthelperIn, statusBar, provider);
     }
 }