C# Class VSSonarExtensionUi.ViewModel.Analysis.ServerViewModel

Inheritance: IAnalysisModelBase, IViewModelBase, IModelBase
Afficher le fichier Open project: TrimbleSolutionsCorporation/VSSonarQubeExtension

Méthodes publiques

Méthode Description
AssociateWithNewProject ( Resource associatedProjectIn, string workingDir, ISourceControlProvider provider, Profile>.Dictionary profile, string visualStudioVersion ) : void

The init data association.

ClearCache ( ) : void

The clear cache.

ClearIssues ( ) : void

Clears the issues.

GetAvailableModel ( ) : object

Gets the available model, TODO: needs to be removed after viewmodels are split into models and view models

GetCoverageInEditor ( string currentSourceBuffer ) : CoverageElement>.Dictionary

The get coverage in editor.

GetIssuesForResource ( Resource file, string fileContent, bool &shownfalseandresolved ) : List

The get issues for resource.

GetViewModel ( ) : object

Gets the view model.

OnAnalysisModeHasChange ( EventArgs e ) : void

The on changed.

OnConnectToSonar ( ISonarConfiguration configuration, IEnumerable availableProjects, IIssueTrackerPlugin issuePlugin ) : void

Called when [connect to sonar].

OnCoverageInEditorEnabledChanged ( ) : void

The on coverage in editor enabled changed.

OnDisconnect ( ) : void

Called when [disconnect].

OnSelectedViewChanged ( ) : void

The on selected view changed.

OnShowFlyoutsChanged ( ) : void

Called when [show flyouts changed].

OnSolutionClosed ( ) : void

The end data association.

RefreshDataForResource ( Resource res, string documentInView, string content, bool fromSource ) : void

The refresh data for resource.

ResetStats ( ) : void

Reset Stats.

ServerViewModel ( IVsEnvironmentHelper vsenvironmenthelper, IConfigurationHelper configurationHelper, ISonarRestService restservice, INotificationManager notificationManager, ISQKeyTranslator translator, ISonarLocalAnalyser analyser ) : System

Initializes a new instance of the ServerViewModel class.

TriggerAProjectAnalysis ( VsProjectItem project ) : void

The trigger a project analysis.

UpdateColours ( Color background, Color foreground ) : void

The update colours.

UpdateOpenDiffWindowList ( string fullName ) : void

Updates the open difference window list.

UpdateServices ( IVsEnvironmentHelper vsenvironmenthelperIn, IVSSStatusBar statusBarIn, IServiceProvider provider ) : void

The update services.

Méthodes protégées

Méthode Description
OnCoverageWasModified ( EventArgs e ) : void

The on coverage was modified.

Private Methods

Méthode Description
CreateRowContextMenu ( ISonarRestService service, ISQKeyTranslator translator ) : ObservableCollection

The create row context menu.

InitCommanding ( ) : void

The init commanding.

OnCloseFlyoutIssueSearchCommand ( ) : void

The on close flyout issue search command.

OnDisplaySourceDiffCommand ( ) : void

The on display source diff command.

ShowHideLeftFlyout ( object sender, EventArgs e ) : void

Shows the hide left flyout.

Method Details

AssociateWithNewProject() public méthode

The init data association.
public AssociateWithNewProject ( Resource associatedProjectIn, string workingDir, ISourceControlProvider provider, Profile>.Dictionary profile, string visualStudioVersion ) : void
associatedProjectIn Resource The associated project in.
workingDir string The working dir.
provider ISourceControlProvider The provider.
profile Profile>.Dictionary
visualStudioVersion string
Résultat void

ClearCache() public méthode

The clear cache.
public ClearCache ( ) : void
Résultat void

ClearIssues() public méthode

Clears the issues.
public ClearIssues ( ) : void
Résultat void

GetAvailableModel() public méthode

Gets the available model, TODO: needs to be removed after viewmodels are split into models and view models
public GetAvailableModel ( ) : object
Résultat object

GetCoverageInEditor() public méthode

The get coverage in editor.
public GetCoverageInEditor ( string currentSourceBuffer ) : CoverageElement>.Dictionary
currentSourceBuffer string /// The current source buffer. ///
Résultat CoverageElement>.Dictionary

GetIssuesForResource() public méthode

The get issues for resource.
public GetIssuesForResource ( Resource file, string fileContent, bool &shownfalseandresolved ) : List
file Resource The file.
fileContent string The file content.
shownfalseandresolved bool The shown false and resolved.
Résultat List

GetViewModel() public méthode

Gets the view model.
public GetViewModel ( ) : object
Résultat object

OnAnalysisModeHasChange() public méthode

The on changed.
public OnAnalysisModeHasChange ( EventArgs e ) : void
e System.EventArgs /// The e. ///
Résultat void

OnConnectToSonar() public méthode

Called when [connect to sonar].
public OnConnectToSonar ( ISonarConfiguration configuration, IEnumerable availableProjects, IIssueTrackerPlugin issuePlugin ) : void
configuration ISonarConfiguration sonar configuration
availableProjects IEnumerable
issuePlugin IIssueTrackerPlugin
Résultat void

OnCoverageInEditorEnabledChanged() public méthode

The on coverage in editor enabled changed.
public OnCoverageInEditorEnabledChanged ( ) : void
Résultat void

OnCoverageWasModified() protected méthode

The on coverage was modified.
protected OnCoverageWasModified ( EventArgs e ) : void
e System.EventArgs The e.
Résultat void

OnDisconnect() public méthode

Called when [disconnect].
public OnDisconnect ( ) : void
Résultat void

OnSelectedViewChanged() public méthode

The on selected view changed.
public OnSelectedViewChanged ( ) : void
Résultat void

OnShowFlyoutsChanged() public méthode

Called when [show flyouts changed].
public OnShowFlyoutsChanged ( ) : void
Résultat void

OnSolutionClosed() public méthode

The end data association.
public OnSolutionClosed ( ) : void
Résultat void

RefreshDataForResource() public méthode

The refresh data for resource.
public RefreshDataForResource ( Resource res, string documentInView, string content, bool fromSource ) : void
res Resource /// The res. ///
documentInView string /// The document in view. ///
content string
fromSource bool
Résultat void

ResetStats() public méthode

Reset Stats.
public ResetStats ( ) : void
Résultat void

ServerViewModel() public méthode

Initializes a new instance of the ServerViewModel class.
public ServerViewModel ( IVsEnvironmentHelper vsenvironmenthelper, IConfigurationHelper configurationHelper, ISonarRestService restservice, INotificationManager notificationManager, ISQKeyTranslator translator, ISonarLocalAnalyser analyser ) : System
vsenvironmenthelper IVsEnvironmentHelper The vsenvironmenthelper.
configurationHelper IConfigurationHelper The configuration helper.
restservice ISonarRestService The restservice.
notificationManager INotificationManager The notification manager.
translator ISQKeyTranslator The translator.
analyser ISonarLocalAnalyser The analyser.
Résultat System

TriggerAProjectAnalysis() public méthode

The trigger a project analysis.
public TriggerAProjectAnalysis ( VsProjectItem project ) : void
project VsProjectItem The project.
Résultat void

UpdateColours() public méthode

The update colours.
public UpdateColours ( Color background, Color foreground ) : void
background Color /// The background. ///
foreground Color /// The foreground. ///
Résultat void

UpdateOpenDiffWindowList() public méthode

Updates the open difference window list.
public UpdateOpenDiffWindowList ( string fullName ) : void
fullName string The full name.
Résultat void

UpdateServices() public méthode

The update services.
public UpdateServices ( IVsEnvironmentHelper vsenvironmenthelperIn, IVSSStatusBar statusBarIn, IServiceProvider provider ) : void
vsenvironmenthelperIn IVsEnvironmentHelper The vsenvironmenthelper in.
statusBarIn IVSSStatusBar The status bar in.
provider IServiceProvider The provider.
Résultat void