C# Class VSSonarExtensionUi.ViewModel.Configuration.PluginManagerModel

Inheritance: IOptionsViewModelBase, IOptionsModelBase, IPluginManager
Mostrar archivo Open project: TrimbleSolutionsCorporation/VSSonarQubeExtension Class Usage Examples

Private Properties

Property Type Description
InitCommanding void
InitPluginList bool
OnSelectionChangeCommand void
SelectIssueTrackerPlugin void

Public Methods

Method Description
AssociateWithNewProject ( Resource project, string workDir, ISourceControlProvider provider, Profile>.Dictionary profile, string visualStudioVersion ) : void

Associates the with new project.

AssociateWithNewProject ( Resource project, string workingDir, ISourceControlProvider sourceModel, IIssueTrackerPlugin sourcePlugin, Profile>.Dictionary profile ) : void

Associates the with new project.

GetAvailableModel ( ) : object

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

GetIssueTrackerPlugin ( ) : IIssueTrackerPlugin

Gets the issue tracker plugin.

GetViewModel ( ) : object

Gets the view model.

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

Called when [connect to sonar].

OnDisconnect ( ) : void

Called when [disconnect].

OnInstallNewPlugin ( ) : void

Gets or sets a value indicating whether install new plugin.

OnRemovePlugin ( ) : void

Gets or sets a value indicating whether remove plugin.

OnSolutionClosed ( ) : void

The end data association.

PluginManagerModel ( IPluginController controller, IConfigurationHelper configurationHelper, INotificationManager notifyManager, IVsEnvironmentHelper helper ) : System

Initializes a new instance of the PluginManagerModel class.

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

The update services.

Private Methods

Method Description
InitCommanding ( ) : void

The init commanding.

InitPluginList ( IVsEnvironmentHelper visualStudioHelper, IEnumerable files ) : bool

The init plugin list.

OnSelectionChangeCommand ( ) : void

The on selection change command.

SelectIssueTrackerPlugin ( ) : void

Selects the issue tracker plugin.

Method Details

AssociateWithNewProject() public method

Associates the with new project.
public AssociateWithNewProject ( Resource project, string workDir, ISourceControlProvider provider, Profile>.Dictionary profile, string visualStudioVersion ) : void
project Resource The project.
workDir string The work dir.
provider ISourceControlProvider The provider.
profile Profile>.Dictionary The profile.
visualStudioVersion string
return void

AssociateWithNewProject() public method

Associates the with new project.
public AssociateWithNewProject ( Resource project, string workingDir, ISourceControlProvider sourceModel, IIssueTrackerPlugin sourcePlugin, Profile>.Dictionary profile ) : void
project Resource The project.
workingDir string The working dir.
sourceModel ISourceControlProvider The source model.
sourcePlugin IIssueTrackerPlugin The source plugin.
profile Profile>.Dictionary The profile.
return void

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

GetIssueTrackerPlugin() public method

Gets the issue tracker plugin.
public GetIssueTrackerPlugin ( ) : IIssueTrackerPlugin
return IIssueTrackerPlugin

GetViewModel() public method

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

OnConnectToSonar() public method

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

OnDisconnect() public method

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

OnInstallNewPlugin() public method

Gets or sets a value indicating whether install new plugin.
public OnInstallNewPlugin ( ) : void
return void

OnRemovePlugin() public method

Gets or sets a value indicating whether remove plugin.
public OnRemovePlugin ( ) : void
return void

OnSolutionClosed() public method

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

PluginManagerModel() public method

Initializes a new instance of the PluginManagerModel class.
public PluginManagerModel ( IPluginController controller, IConfigurationHelper configurationHelper, INotificationManager notifyManager, IVsEnvironmentHelper helper ) : System
controller IPluginController The controller.
configurationHelper IConfigurationHelper The configuration helper.
notifyManager INotificationManager The notify manager.
helper IVsEnvironmentHelper The helper.
return System

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

The update 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