C# Класс VSSonarExtensionUi.ViewModel.SonarQubeViewModel

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

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