C# 클래스 VSSonarExtensionUi.ViewModel.SonarQubeViewModel

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

Private Properties

프로퍼티 타입 설명
FullAnalysisHasCompleted void
InitCommands void
InitMenus void
InitViewsAndModels void
OnAssignProjectCommand void
OnClearCacheCommand void
OnCloseRightFlyoutCommand void
OnConnectCommand void
OnProvisionProjectCommand void
OnSelectedProjectInViewChanged void
OnShowNewLocalIssuesCommand void
PreviewAnalysisHasCompleted void
ProvisionProject void
ResetIssuesInViews void
RunFullAnalysisAfterAssociation void
RunPreviewAnalysisAfterAssociation void
SetupAssociationMessages void

공개 메소드들

메소드 설명
AddANewMenu ( IMenuCommandPlugin toAdd ) : void

The add a new menu.

CanCloseSolution ( ) : int

Determines whether this instance [can close solution].

ClosedWindow ( string fullName ) : void

The closed window.

ExecutePlugin ( string header ) : void

The execute plugin.

GetCoverageInEditor ( string buffer ) : CoverageElement>.Dictionary

The get coverage in editor.

GetFirstFreeId ( ) : int

The get first free id.

GetIssuesInEditor ( Resource fileResource, string fileContent, bool &showfalseandresolved ) : List

The get issues in editor.

InitModelFromPackageInitialization ( IVsEnvironmentHelper vsenvironmenthelperIn, IVSSStatusBar statusBar, IServiceProvider provider, string extensionFolder ) : void

The extension data viewModel update.

IsRunningInVisualStudio ( ) : bool

The is running in visual studio.

LaunchExtensionProperties ( ) : void

The launch extension properties.

OnConnectToSonar ( bool useDispatcher ) : void

The connect to sonar.

OnConnectToSonarCommand ( ) : void

Called when [connect to sonar command].

OnDisconnectToSonar ( ) : void

The on disconnect to sonar.

OnIssuesChangeEvent ( ) : void

The on issues change event.

OnSelectedViewModelChanged ( ) : void

The on selected view changed.

OnSolutionClosed ( ) : void

Called when [solution closed].

OnSolutionOpen ( string solutionName, string solutionPath, string fileInView, ISourceControlProvider sourceProvider = null ) : void

Called when [solution open].

ProjectHasBuild ( VsProjectItem project ) : void

Projects the has build.

RefreshDataForResource ( ) : void

Refreshes the data for resource.

RefreshDataForResource ( string fullName, string contentoffile, bool fromSave ) : void

The refresh data for resource.

RefreshNewListOfIssues ( ) : void

Refreshes the new list of issues.

RefreshProjectList ( bool useDispatcher ) : void

Refreshes the project list.

RegisterNewViewModelInPool ( IViewModelBase viewModel ) : void

Registers the new view model in pool.

RemoveMenuPlugin ( IMenuCommandPlugin toRemove ) : void

The remove menu plugin.

ResetAndEstablishANewConnectionToServer ( ) : void

Resets the and establish a new connection to server.

SelectBranchFromList ( ) : Resource

Selects the branch from list.

SonarQubeViewModel ( ) : System

Initializes a new instance of the SonarQubeViewModel class.

SonarQubeViewModel ( string vsverionIn, IConfigurationHelper configurationHelperIn ) : System

Initializes a new instance of the SonarQubeViewModel class. Plugins are initialized in InitModelFromPackageInitialization below

SonarQubeViewModel ( string vsverionIn, IConfigurationHelper helper, INotificationManager notification, ISQKeyTranslator translator, ISonarRestService restService, ISourceControlProvider sourceControl = null, IPluginManager pluginManager = null, ISonarLocalAnalyser locaAnalyser = null ) : System

Initializes a new instance of the SonarQubeViewModel class.

StartAnalysisWindow ( AnalysisTypes mode, bool fromSave ) : void

Starts the analysis window.

UpdateColours ( Color background, Color foreground ) : void

The update colours.

UpdateTheme ( Color background, Color foreground ) : void

The update theme.

보호된 메소드들

메소드 설명
OnAnalysisModeHasChange ( EventArgs e ) : void

The on changed.

OnPluginRequest ( EventArgs e ) : void

The on plugin request.

OnRemovePluginRequest ( EventArgs e ) : void

The on remove plugin request.

비공개 메소드들

메소드 설명
FullAnalysisHasCompleted ( object sender, EventArgs e ) : void

Fulls the analysis has completed.

InitCommands ( ) : void

The init commands.

InitMenus ( ) : void

The init menus.

InitViewsAndModels ( ) : void

The init views.

OnAssignProjectCommand ( ) : void

The on assign project command.

OnClearCacheCommand ( ) : void

The on clear cache command.

OnCloseRightFlyoutCommand ( ) : void

The on close flyout issue search command.

OnConnectCommand ( ) : void

The on connect command.

OnProvisionProjectCommand ( ) : void

Called when [provision project command].

OnSelectedProjectInViewChanged ( ) : void

Called when [selected project changed].

OnShowNewLocalIssuesCommand ( ) : void

Called when [show new local issues command].

PreviewAnalysisHasCompleted ( object sender, EventArgs e ) : void

Previews the analysis has completed.

ProvisionProject ( bool confirmAnalysis ) : void

Provisions the project.

ResetIssuesInViews ( ) : void

Resets the issues in views.

RunFullAnalysisAfterAssociation ( object sender, EventArgs e ) : void

Runs the full analysis after association.

RunPreviewAnalysisAfterAssociation ( object sender, EventArgs e ) : void

Runs the preview analysis after association.

SetupAssociationMessages ( ) : void

Setups the association messages.

메소드 상세

AddANewMenu() 공개 메소드

The add a new menu.
public AddANewMenu ( IMenuCommandPlugin toAdd ) : void
toAdd IMenuCommandPlugin The to add.
리턴 void

CanCloseSolution() 공개 메소드

Determines whether this instance [can close solution].
public CanCloseSolution ( ) : int
리턴 int

ClosedWindow() 공개 메소드

The closed window.
public ClosedWindow ( string fullName ) : void
fullName string The full name.
리턴 void

ExecutePlugin() 공개 메소드

The execute plugin.
public ExecutePlugin ( string header ) : void
header string The data.
리턴 void

GetCoverageInEditor() 공개 메소드

The get coverage in editor.
public GetCoverageInEditor ( string buffer ) : CoverageElement>.Dictionary
buffer string The buffer.
리턴 CoverageElement>.Dictionary

GetFirstFreeId() 공개 메소드

The get first free id.
public GetFirstFreeId ( ) : int
리턴 int

GetIssuesInEditor() 공개 메소드

The get issues in editor.
public GetIssuesInEditor ( Resource fileResource, string fileContent, bool &showfalseandresolved ) : List
fileResource Resource The file Resource.
fileContent string The file Content.
showfalseandresolved bool if set to true [show false and resolved].
리턴 List

InitModelFromPackageInitialization() 공개 메소드

The extension data viewModel update.
public InitModelFromPackageInitialization ( IVsEnvironmentHelper vsenvironmenthelperIn, IVSSStatusBar statusBar, IServiceProvider provider, string extensionFolder ) : void
vsenvironmenthelperIn IVsEnvironmentHelper The vs environment helper in.
statusBar IVSSStatusBar The status bar.
provider IServiceProvider The provider.
extensionFolder string The extension Folder.
리턴 void

IsRunningInVisualStudio() 공개 메소드

The is running in visual studio.
public IsRunningInVisualStudio ( ) : bool
리턴 bool

LaunchExtensionProperties() 공개 메소드

The launch extension properties.
public LaunchExtensionProperties ( ) : void
리턴 void

OnAnalysisModeHasChange() 보호된 메소드

The on changed.
protected OnAnalysisModeHasChange ( EventArgs e ) : void
e System.EventArgs The e.
리턴 void

OnConnectToSonar() 공개 메소드

The connect to sonar.
public OnConnectToSonar ( bool useDispatcher ) : void
useDispatcher bool if set to true [use dispatcher].
리턴 void

OnConnectToSonarCommand() 공개 메소드

Called when [connect to sonar command].
public OnConnectToSonarCommand ( ) : void
리턴 void

OnDisconnectToSonar() 공개 메소드

The on disconnect to sonar.
public OnDisconnectToSonar ( ) : void
리턴 void

OnIssuesChangeEvent() 공개 메소드

The on issues change event.
public OnIssuesChangeEvent ( ) : void
리턴 void

OnPluginRequest() 보호된 메소드

The on plugin request.
protected OnPluginRequest ( EventArgs e ) : void
e System.EventArgs The e.
리턴 void

OnRemovePluginRequest() 보호된 메소드

The on remove plugin request.
protected OnRemovePluginRequest ( EventArgs e ) : void
e System.EventArgs The e.
리턴 void

OnSelectedViewModelChanged() 공개 메소드

The on selected view changed.
public OnSelectedViewModelChanged ( ) : void
리턴 void

OnSolutionClosed() 공개 메소드

Called when [solution closed].
public OnSolutionClosed ( ) : void
리턴 void

OnSolutionOpen() 공개 메소드

Called when [solution open].
public OnSolutionOpen ( string solutionName, string solutionPath, string fileInView, ISourceControlProvider sourceProvider = null ) : void
solutionName string Name of the solution.
solutionPath string The solution path.
fileInView string The file in view.
sourceProvider ISourceControlProvider The source provider.
리턴 void

ProjectHasBuild() 공개 메소드

Projects the has build.
public ProjectHasBuild ( VsProjectItem project ) : void
project VsProjectItem The project.
리턴 void

RefreshDataForResource() 공개 메소드

Refreshes the data for resource.
public RefreshDataForResource ( ) : void
리턴 void

RefreshDataForResource() 공개 메소드

The refresh data for resource.
public RefreshDataForResource ( string fullName, string contentoffile, bool fromSave ) : void
fullName string The full name.
contentoffile string The content of file.
fromSave bool if set to true [from save].
리턴 void

RefreshNewListOfIssues() 공개 메소드

Refreshes the new list of issues.
public RefreshNewListOfIssues ( ) : void
리턴 void

RefreshProjectList() 공개 메소드

Refreshes the project list.
public RefreshProjectList ( bool useDispatcher ) : void
useDispatcher bool if set to true [use dispatcher].
리턴 void

RegisterNewViewModelInPool() 공개 정적인 메소드

Registers the new view model in pool.
public static RegisterNewViewModelInPool ( IViewModelBase viewModel ) : void
viewModel IViewModelBase The view model.
리턴 void

RemoveMenuPlugin() 공개 메소드

The remove menu plugin.
public RemoveMenuPlugin ( IMenuCommandPlugin toRemove ) : void
toRemove IMenuCommandPlugin The to remove.
리턴 void

ResetAndEstablishANewConnectionToServer() 공개 메소드

Resets the and establish a new connection to server.
public ResetAndEstablishANewConnectionToServer ( ) : void
리턴 void

SelectBranchFromList() 공개 메소드

Selects the branch from list.
public SelectBranchFromList ( ) : Resource
리턴 Resource

SonarQubeViewModel() 공개 메소드

Initializes a new instance of the SonarQubeViewModel class.
public SonarQubeViewModel ( ) : System
리턴 System

SonarQubeViewModel() 공개 메소드

Initializes a new instance of the SonarQubeViewModel class. Plugins are initialized in InitModelFromPackageInitialization below
public SonarQubeViewModel ( string vsverionIn, IConfigurationHelper configurationHelperIn ) : System
vsverionIn string The vs version.
configurationHelperIn IConfigurationHelper
리턴 System

SonarQubeViewModel() 공개 메소드

Initializes a new instance of the SonarQubeViewModel class.
public SonarQubeViewModel ( string vsverionIn, IConfigurationHelper helper, INotificationManager notification, ISQKeyTranslator translator, ISonarRestService restService, ISourceControlProvider sourceControl = null, IPluginManager pluginManager = null, ISonarLocalAnalyser locaAnalyser = null ) : System
vsverionIn string The vsverion in.
helper IConfigurationHelper The helper.
notification INotificationManager The notification.
translator ISQKeyTranslator The translator.
restService ISonarRestService The rest service.
sourceControl ISourceControlProvider The source control.
pluginManager IPluginManager The plugin manager.
locaAnalyser ISonarLocalAnalyser The local analyser.
리턴 System

StartAnalysisWindow() 공개 메소드

Starts the analysis window.
public StartAnalysisWindow ( AnalysisTypes mode, bool fromSave ) : void
mode AnalysisTypes The mode.
fromSave bool if set to true [from save].
리턴 void

UpdateColours() 공개 메소드

The update colours.
public UpdateColours ( Color background, Color foreground ) : void
background Color The background.
foreground Color The foreground.
리턴 void

UpdateTheme() 공개 메소드

The update theme.
public UpdateTheme ( Color background, Color foreground ) : void
background Color The background.
foreground Color The foreground.
리턴 void