C# Class VSSonarExtensionUi.ViewModel.Configuration.GeneralConfigurationViewModel

Inheritance: IOptionsViewModelBase, IOptionsModelBase
Mostrar archivo Open project: TrimbleSolutionsCorporation/VSSonarQubeExtension

Public Methods

Method 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.

Protected Methods

Method Description
OnAnalysisModeHasChange ( EventArgs e ) : void

The on changed.

Private Methods

Method 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 method

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
return void

GeneralConfigurationViewModel() public method

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.
return System

GetAvailableModel() public method

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

GetViewModel() public method

Gets the view model.
public GetViewModel ( ) : object
return object

OnAnalysisModeHasChange() protected method

The on changed.
protected OnAnalysisModeHasChange ( EventArgs e ) : void
e System.EventArgs /// The e. ///
return void

OnConnectToSonar() public method

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

OnDisconnect() public method

Called when [disconnect].
public OnDisconnect ( ) : void
return void

OnExtensionDebugModeEnabledChanged() public method

The on extension debug mode enabled changed.
public OnExtensionDebugModeEnabledChanged ( ) : void
return void

OnIsConnectAtStarOnChanged() public method

The on is connect at star on changed.
public OnIsConnectAtStarOnChanged ( ) : void
return void

OnSelectedViewChanged() public method

The on selected view changed.
public OnSelectedViewChanged ( ) : void
return void

OnServerAddressChanged() public method

Called when [server address changed].
public OnServerAddressChanged ( ) : void
return void

OnSolutionClosed() public method

The end data association.
public OnSolutionClosed ( ) : void
return void

ReloadDataFromDisk() public method

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

SaveData() public method

Saves the data.
public SaveData ( ) : void
return void

UpdateColours() public method

The update colours.
public UpdateColours ( Color background, Color foreground ) : void
background Color /// The background. ///
foreground Color /// The foreground. ///
return void

UpdateServices() public method

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.
return void