C# Класс VSSonarExtensionUi.ViewModel.Analysis.ServerViewModel

Наследование: IAnalysisModelBase, IViewModelBase, IModelBase
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
OnCoverageWasModified ( EventArgs e ) : void

The on coverage was modified.

Приватные методы

Метод Описание
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.

Описание методов

AssociateWithNewProject() публичный Метод

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
Результат void

ClearCache() публичный Метод

The clear cache.
public ClearCache ( ) : void
Результат void

ClearIssues() публичный Метод

Clears the issues.
public ClearIssues ( ) : void
Результат void

GetAvailableModel() публичный Метод

Gets the available model, TODO: needs to be removed after viewmodels are split into models and view models
public GetAvailableModel ( ) : object
Результат object

GetCoverageInEditor() публичный Метод

The get coverage in editor.
public GetCoverageInEditor ( string currentSourceBuffer ) : CoverageElement>.Dictionary
currentSourceBuffer string /// The current source buffer. ///
Результат CoverageElement>.Dictionary

GetIssuesForResource() публичный Метод

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.
Результат List

GetViewModel() публичный Метод

Gets the view model.
public GetViewModel ( ) : object
Результат object

OnAnalysisModeHasChange() публичный Метод

The on changed.
public OnAnalysisModeHasChange ( EventArgs e ) : void
e System.EventArgs /// The e. ///
Результат void

OnConnectToSonar() публичный Метод

Called when [connect to sonar].
public OnConnectToSonar ( ISonarConfiguration configuration, IEnumerable availableProjects, IIssueTrackerPlugin issuePlugin ) : void
configuration ISonarConfiguration sonar configuration
availableProjects IEnumerable
issuePlugin IIssueTrackerPlugin
Результат void

OnCoverageInEditorEnabledChanged() публичный Метод

The on coverage in editor enabled changed.
public OnCoverageInEditorEnabledChanged ( ) : void
Результат void

OnCoverageWasModified() защищенный Метод

The on coverage was modified.
protected OnCoverageWasModified ( EventArgs e ) : void
e System.EventArgs The e.
Результат void

OnDisconnect() публичный Метод

Called when [disconnect].
public OnDisconnect ( ) : void
Результат void

OnSelectedViewChanged() публичный Метод

The on selected view changed.
public OnSelectedViewChanged ( ) : void
Результат void

OnShowFlyoutsChanged() публичный Метод

Called when [show flyouts changed].
public OnShowFlyoutsChanged ( ) : void
Результат void

OnSolutionClosed() публичный Метод

The end data association.
public OnSolutionClosed ( ) : void
Результат void

RefreshDataForResource() публичный Метод

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
Результат void

ResetStats() публичный Метод

Reset Stats.
public ResetStats ( ) : void
Результат void

ServerViewModel() публичный Метод

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.
Результат System

TriggerAProjectAnalysis() публичный Метод

The trigger a project analysis.
public TriggerAProjectAnalysis ( VsProjectItem project ) : void
project VsProjectItem The project.
Результат void

UpdateColours() публичный Метод

The update colours.
public UpdateColours ( Color background, Color foreground ) : void
background Color /// The background. ///
foreground Color /// The foreground. ///
Результат void

UpdateOpenDiffWindowList() публичный Метод

Updates the open difference window list.
public UpdateOpenDiffWindowList ( string fullName ) : void
fullName string The full name.
Результат void

UpdateServices() публичный Метод

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.
Результат void