C# Class VSSonarExtensionUi.ViewModel.SonarQubeViewModel

Mostrar archivo Open project: TrimbleSolutionsCorporation/VSSonarQubeExtension Class Usage Examples

Private Properties

Property Type Description
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

Public Methods

Method Description
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.

Protected Methods

Method Description
OnAnalysisModeHasChange ( EventArgs e ) : void

The on changed.

OnPluginRequest ( EventArgs e ) : void

The on plugin request.

OnRemovePluginRequest ( EventArgs e ) : void

The on remove plugin request.

Private Methods

Method Description
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.

Method Details

AddANewMenu() public method

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

CanCloseSolution() public method

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

ClosedWindow() public method

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

ExecutePlugin() public method

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

GetCoverageInEditor() public method

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

GetFirstFreeId() public method

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

GetIssuesInEditor() public method

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].
return List

InitModelFromPackageInitialization() public method

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.
return void

IsRunningInVisualStudio() public method

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

LaunchExtensionProperties() public method

The launch extension properties.
public LaunchExtensionProperties ( ) : void
return void

OnAnalysisModeHasChange() protected method

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

OnConnectToSonar() public method

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

OnConnectToSonarCommand() public method

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

OnDisconnectToSonar() public method

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

OnIssuesChangeEvent() public method

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

OnPluginRequest() protected method

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

OnRemovePluginRequest() protected method

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

OnSelectedViewModelChanged() public method

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

OnSolutionClosed() public method

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

OnSolutionOpen() public method

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.
return void

ProjectHasBuild() public method

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

RefreshDataForResource() public method

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

RefreshDataForResource() public method

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].
return void

RefreshNewListOfIssues() public method

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

RefreshProjectList() public method

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

RegisterNewViewModelInPool() public static method

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

RemoveMenuPlugin() public method

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

ResetAndEstablishANewConnectionToServer() public method

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

SelectBranchFromList() public method

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

SonarQubeViewModel() public method

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

SonarQubeViewModel() public method

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
return System

SonarQubeViewModel() public method

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.
return System

StartAnalysisWindow() public method

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

UpdateColours() public method

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

UpdateTheme() public method

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