C# 클래스 VSSonarExtensionUi.Association.AssociationModel

파일 보기 프로젝트 열기: TrimbleSolutionsCorporation/VSSonarQubeExtension 1 사용 예제들

공개 메소드들

메소드 설명
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