C# Class VSSonarExtensionUi.Association.AssociationModel

Afficher le fichier Open project: TrimbleSolutionsCorporation/VSSonarQubeExtension Class Usage Examples

Méthodes publiques

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

Méthode 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 méthode

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

AssociateProjectToSolution() public méthode

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

AssociationModel() public méthode

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

CreateAValidResourceFromServer() public méthode

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.
Résultat VSSonarPlugins.Types.Resource

CreateResourcePathFile() public méthode

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

CurrentBranch() public méthode

Currents the branch.
public CurrentBranch ( ISourceControlProvider sourceControlProvider ) : string
sourceControlProvider ISourceControlProvider
Résultat string

Disconnect() public méthode

Disconnects this instance.
public Disconnect ( ) : void
Résultat void

GetResourceForSolution() public méthode

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.
Résultat VSSonarPlugins.Types.Resource

OnConnectToSonar() public méthode

Called when [connect to sonar].
public OnConnectToSonar ( ) : void
Résultat void

OnSolutionClosed() public méthode

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

RegisterNewModelInPool() public static méthode

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

StartAutoAssociation() public méthode

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

UpdateServicesInModels() public méthode

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