C# Класс VSSonarExtensionUi.ViewModel.Configuration.GeneralConfigurationViewModel

Наследование: IOptionsViewModelBase, IOptionsModelBase
Показать файл Открыть проект

Открытые методы

Метод Описание
AssociateWithNewProject ( Resource project, string workingDir, ISourceControlProvider provider, Profile>.Dictionary profile, string visualStudioVersion ) : void

Associates the with new project.

GeneralConfigurationViewModel ( VSonarQubeOptionsViewModel viewModel, ISonarRestService restService, IConfigurationHelper configurationHelper, INotificationManager notificationManager ) : System

Initializes a new instance of the GeneralConfigurationViewModel class.

GetAvailableModel ( ) : object

Gets the available model, TODO: needs to be removed after viewmodels are split into models and view models

GetViewModel ( ) : object

Gets the view model.

OnConnectToSonar ( ISonarConfiguration configuration, IEnumerable availableProjects, IIssueTrackerPlugin plugin ) : void

Called when [connect to sonar].

OnDisconnect ( ) : void

Called when [disconnect].

OnExtensionDebugModeEnabledChanged ( ) : void

The on extension debug mode enabled changed.

OnIsConnectAtStarOnChanged ( ) : void

The on is connect at star on changed.

OnSelectedViewChanged ( ) : void

The on selected view changed.

OnServerAddressChanged ( ) : void

Called when [server address changed].

OnSolutionClosed ( ) : void

The end data association.

ReloadDataFromDisk ( Resource associatedProjectIn ) : void

The init data association.

SaveData ( ) : void

Saves the data.

UpdateColours ( Color background, Color foreground ) : void

The update colours.

UpdateServices ( IVsEnvironmentHelper vsenvironmenthelperIn, IVSSStatusBar statusBar, IServiceProvider provider ) : void

Updates the services.

Защищенные методы

Метод Описание
OnAnalysisModeHasChange ( EventArgs e ) : void

The on changed.

Приватные методы

Метод Описание
GetCredentials ( ) : void

The get credentials.

OnClearCacheCommand ( object data ) : void

The on clear cache command.

OnClearCredentials ( object data ) : void

The on clear credentials.

OnConnectToServerCommand ( object obj ) : void

Called when [connect to server command].

OnGetTokenCommand ( object obj ) : void
OnTestAndSavePassword ( object obj ) : void

The on test and save password.

SetCredentials ( string userName, string password ) : void

The set credentials.

Описание методов

AssociateWithNewProject() публичный Метод

Associates the with new project.
public AssociateWithNewProject ( Resource project, string workingDir, ISourceControlProvider provider, Profile>.Dictionary profile, string visualStudioVersion ) : void
project Resource The project.
workingDir string The working dir.
provider ISourceControlProvider The provider.
profile Profile>.Dictionary The profile.
visualStudioVersion string
Результат void

GeneralConfigurationViewModel() публичный Метод

Initializes a new instance of the GeneralConfigurationViewModel class.
public GeneralConfigurationViewModel ( VSonarQubeOptionsViewModel viewModel, ISonarRestService restService, IConfigurationHelper configurationHelper, INotificationManager notificationManager ) : System
viewModel VSonarQubeOptionsViewModel The view model.
restService ISonarRestService The rest service.
configurationHelper IConfigurationHelper The configuration helper.
notificationManager INotificationManager The notification manager.
Результат System

GetAvailableModel() публичный Метод

Gets the available model, TODO: needs to be removed after viewmodels are split into models and view models
public GetAvailableModel ( ) : object
Результат object

GetViewModel() публичный Метод

Gets the view model.
public GetViewModel ( ) : object
Результат object

OnAnalysisModeHasChange() защищенный Метод

The on changed.
protected OnAnalysisModeHasChange ( EventArgs e ) : void
e System.EventArgs /// The e. ///
Результат void

OnConnectToSonar() публичный Метод

Called when [connect to sonar].
public OnConnectToSonar ( ISonarConfiguration configuration, IEnumerable availableProjects, IIssueTrackerPlugin plugin ) : void
configuration ISonarConfiguration sonar configuration
availableProjects IEnumerable
plugin IIssueTrackerPlugin
Результат void

OnDisconnect() публичный Метод

Called when [disconnect].
public OnDisconnect ( ) : void
Результат void

OnExtensionDebugModeEnabledChanged() публичный Метод

The on extension debug mode enabled changed.
public OnExtensionDebugModeEnabledChanged ( ) : void
Результат void

OnIsConnectAtStarOnChanged() публичный Метод

The on is connect at star on changed.
public OnIsConnectAtStarOnChanged ( ) : void
Результат void

OnSelectedViewChanged() публичный Метод

The on selected view changed.
public OnSelectedViewChanged ( ) : void
Результат void

OnServerAddressChanged() публичный Метод

Called when [server address changed].
public OnServerAddressChanged ( ) : void
Результат void

OnSolutionClosed() публичный Метод

The end data association.
public OnSolutionClosed ( ) : void
Результат void

ReloadDataFromDisk() публичный Метод

The init data association.
public ReloadDataFromDisk ( Resource associatedProjectIn ) : void
associatedProjectIn Resource The associated project in.
Результат void

SaveData() публичный Метод

Saves the data.
public SaveData ( ) : void
Результат void

UpdateColours() публичный Метод

The update colours.
public UpdateColours ( Color background, Color foreground ) : void
background Color /// The background. ///
foreground Color /// The foreground. ///
Результат void

UpdateServices() публичный Метод

Updates the services.
public UpdateServices ( IVsEnvironmentHelper vsenvironmenthelperIn, IVSSStatusBar statusBar, IServiceProvider provider ) : void
vsenvironmenthelperIn IVsEnvironmentHelper The vsenvironmenthelper in.
statusBar IVSSStatusBar The status bar.
provider IServiceProvider The provider.
Результат void