C# Класс VSSonarExtensionUi.Association.AssociationModel

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

AssignASonarProjectToSolution() публичный Метод

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
Результат bool

AssociateProjectToSolution() публичный Метод

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
Результат void

AssociationModel() публичный Метод

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
Результат System

CreateAValidResourceFromServer() публичный Метод

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.
Результат VSSonarPlugins.Types.Resource

CreateResourcePathFile() публичный Метод

Creates the resource path file.
public CreateResourcePathFile ( string fullName, Resource project ) : Resource
fullName string The full name.
project VSSonarPlugins.Types.Resource The project.
Результат VSSonarPlugins.Types.Resource

CurrentBranch() публичный Метод

Currents the branch.
public CurrentBranch ( ISourceControlProvider sourceControlProvider ) : string
sourceControlProvider ISourceControlProvider
Результат string

Disconnect() публичный Метод

Disconnects this instance.
public Disconnect ( ) : void
Результат void

GetResourceForSolution() публичный Метод

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.
Результат VSSonarPlugins.Types.Resource

OnConnectToSonar() публичный Метод

Called when [connect to sonar].
public OnConnectToSonar ( ) : void
Результат void

OnSolutionClosed() публичный Метод

The end data association.
public OnSolutionClosed ( ) : void
Результат void

RegisterNewModelInPool() публичный статический Метод

Registers the new model in pool.
public static RegisterNewModelInPool ( IModelBase model ) : void
model IModelBase The
Результат void

StartAutoAssociation() публичный Метод

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.
Результат void

UpdateServicesInModels() публичный Метод

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.
Результат void