C# Class VSSonarExtensionUi.ViewModel.Configuration.GeneralConfigurationViewModel

Inheritance: IOptionsViewModelBase, IOptionsModelBase
Afficher le fichier Open project: TrimbleSolutionsCorporation/VSSonarQubeExtension

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
OnAnalysisModeHasChange ( EventArgs e ) : void

The on changed.

Private Methods

Méthode Description
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.

Method Details

AssociateWithNewProject() public méthode

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
Résultat void

GeneralConfigurationViewModel() public méthode

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.
Résultat System

GetAvailableModel() public méthode

Gets the available model, TODO: needs to be removed after viewmodels are split into models and view models
public GetAvailableModel ( ) : object
Résultat object

GetViewModel() public méthode

Gets the view model.
public GetViewModel ( ) : object
Résultat object

OnAnalysisModeHasChange() protected méthode

The on changed.
protected OnAnalysisModeHasChange ( EventArgs e ) : void
e System.EventArgs /// The e. ///
Résultat void

OnConnectToSonar() public méthode

Called when [connect to sonar].
public OnConnectToSonar ( ISonarConfiguration configuration, IEnumerable availableProjects, IIssueTrackerPlugin plugin ) : void
configuration ISonarConfiguration sonar configuration
availableProjects IEnumerable
plugin IIssueTrackerPlugin
Résultat void

OnDisconnect() public méthode

Called when [disconnect].
public OnDisconnect ( ) : void
Résultat void

OnExtensionDebugModeEnabledChanged() public méthode

The on extension debug mode enabled changed.
public OnExtensionDebugModeEnabledChanged ( ) : void
Résultat void

OnIsConnectAtStarOnChanged() public méthode

The on is connect at star on changed.
public OnIsConnectAtStarOnChanged ( ) : void
Résultat void

OnSelectedViewChanged() public méthode

The on selected view changed.
public OnSelectedViewChanged ( ) : void
Résultat void

OnServerAddressChanged() public méthode

Called when [server address changed].
public OnServerAddressChanged ( ) : void
Résultat void

OnSolutionClosed() public méthode

The end data association.
public OnSolutionClosed ( ) : void
Résultat void

ReloadDataFromDisk() public méthode

The init data association.
public ReloadDataFromDisk ( Resource associatedProjectIn ) : void
associatedProjectIn Resource The associated project in.
Résultat void

SaveData() public méthode

Saves the data.
public SaveData ( ) : void
Résultat void

UpdateColours() public méthode

The update colours.
public UpdateColours ( Color background, Color foreground ) : void
background Color /// The background. ///
foreground Color /// The foreground. ///
Résultat void

UpdateServices() public méthode

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.
Résultat void