C# Class VSSonarExtensionUi.Association.AssociationModel

Mostrar archivo Open project: TrimbleSolutionsCorporation/VSSonarQubeExtension Class Usage Examples

Public Methods

Method Description
AssignASonarProjectToSolution ( Resource project, Resource branchProject, ISourceControlProvider sourceControl, bool skipRegisterModels = false ) : bool

The on assign project command.

AssociateProjectToSolution ( string solutionName, string solutionPath, ICollection availableProjects, ISourceControlProvider sourceControl ) : void

The associate project to solution.

AssociationModel ( INotificationManager logger, ISonarRestService service, IConfigurationHelper configurationHelper, ISQKeyTranslator translator, IPluginManager pluginManager, SonarQubeViewModel model, ISonarLocalAnalyser localAnalyeser, string vsVersion ) : System

Initializes a new instance of the AssociationModel class.

CreateAValidResourceFromServer ( string fullName, Resource project ) : Resource

The create a resource for file in editor.

CreateResourcePathFile ( string fullName, Resource project ) : Resource

Creates the resource path file.

CurrentBranch ( ISourceControlProvider sourceControlProvider ) : string

Currents the branch.

Disconnect ( ) : void

Disconnects this instance.

GetResourceForSolution ( string solutionName, string solutionPath, ICollection availableProjects, ISourceControlProvider sourceControl ) : Resource

Generates a resource name from a given solution, it will bring Associtation View in case automatic associations is not possible

OnConnectToSonar ( ) : void

Called when [connect to sonar].

OnSolutionClosed ( ) : void

The end data association.

RegisterNewModelInPool ( IModelBase model ) : void

Registers the new model in pool.

StartAutoAssociation ( string solutionName, string solutionPath, ICollection availableProjects, ISourceControlProvider sourceControl ) : void

Starts the automatic association.

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

Updates the services.

Private Methods

Method Description
CreateConfiguration ( string pathForPropertiesFile ) : void

Creates the configuration.

CreateResourceForKey ( string fullName, string key ) : Resource

Validates the resource in server.

GetProjectInBranchResources ( Resource projectInSonar, Resource solutionProject, string branchName ) : Resource
InitiateAssociationToSonarProject ( ISourceControlProvider sourceControl ) : void

Updates the services.

LocalAssociationCompleted ( object sender, EventArgs e ) : void

The update associate command.

SaveAssociationToDisk ( Resource project ) : void
SearchSolutionResourceInSonarProjects ( Resource solResource, string branchName ) : Resource

Method Details

AssignASonarProjectToSolution() public method

The on assign project command.
public AssignASonarProjectToSolution ( Resource project, Resource branchProject, ISourceControlProvider sourceControl, bool skipRegisterModels = false ) : bool
project VSSonarPlugins.Types.Resource
branchProject VSSonarPlugins.Types.Resource The branch project.
sourceControl ISourceControlProvider
skipRegisterModels bool
return bool

AssociateProjectToSolution() public method

The associate project to solution.
public AssociateProjectToSolution ( string solutionName, string solutionPath, ICollection availableProjects, ISourceControlProvider sourceControl ) : void
solutionName string The solution Name.
solutionPath string The solution Path.
availableProjects ICollection The available projects.
sourceControl ISourceControlProvider
return void

AssociationModel() public method

Initializes a new instance of the AssociationModel class.
public AssociationModel ( INotificationManager logger, ISonarRestService service, IConfigurationHelper configurationHelper, ISQKeyTranslator translator, IPluginManager pluginManager, SonarQubeViewModel model, ISonarLocalAnalyser localAnalyeser, string vsVersion ) : System
logger INotificationManager The logger.
service ISonarRestService The service.
configurationHelper IConfigurationHelper The configuration helper.
translator ISQKeyTranslator The translator.
pluginManager IPluginManager The plugin manager.
model SonarQubeViewModel The
localAnalyeser ISonarLocalAnalyser
vsVersion string
return System

CreateAValidResourceFromServer() public method

The create a resource for file in editor.
public CreateAValidResourceFromServer ( string fullName, Resource project ) : Resource
fullName string The full name.
project VSSonarPlugins.Types.Resource The project.
return VSSonarPlugins.Types.Resource

CreateResourcePathFile() public method

Creates the resource path file.
public CreateResourcePathFile ( string fullName, Resource project ) : Resource
fullName string The full name.
project VSSonarPlugins.Types.Resource The project.
return VSSonarPlugins.Types.Resource

CurrentBranch() public method

Currents the branch.
public CurrentBranch ( ISourceControlProvider sourceControlProvider ) : string
sourceControlProvider ISourceControlProvider
return string

Disconnect() public method

Disconnects this instance.
public Disconnect ( ) : void
return void

GetResourceForSolution() public method

Generates a resource name from a given solution, it will bring Associtation View in case automatic associations is not possible
public GetResourceForSolution ( string solutionName, string solutionPath, ICollection availableProjects, ISourceControlProvider sourceControl ) : Resource
solutionName string The solution Name.
solutionPath string The solution Path.
availableProjects ICollection The available projects.
sourceControl ISourceControlProvider The source control.
return VSSonarPlugins.Types.Resource

OnConnectToSonar() public method

Called when [connect to sonar].
public OnConnectToSonar ( ) : void
return void

OnSolutionClosed() public method

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

RegisterNewModelInPool() public static method

Registers the new model in pool.
public static RegisterNewModelInPool ( IModelBase model ) : void
model IModelBase The
return void

StartAutoAssociation() public method

Starts the automatic association.
Solution not found in server, please be sure its analysed before
public StartAutoAssociation ( string solutionName, string solutionPath, ICollection availableProjects, ISourceControlProvider sourceControl ) : void
solutionName string Name of the solution.
solutionPath string The solution path.
availableProjects ICollection The available projects.
sourceControl ISourceControlProvider The source control.
return void

UpdateServicesInModels() public method

Updates the services.
public UpdateServicesInModels ( IVsEnvironmentHelper vsenvironmenthelperIn, IVSSStatusBar statusBar, IServiceProvider provider ) : void
vsenvironmenthelperIn IVsEnvironmentHelper The vsenvironmenthelper in.
statusBar IVSSStatusBar The status bar.
provider IServiceProvider The provider.
return void