C# Class VSSonarExtensionUi.ViewModel.Analysis.ServerViewModel

Inheritance: IAnalysisModelBase, IViewModelBase, IModelBase
Mostrar archivo Open project: TrimbleSolutionsCorporation/VSSonarQubeExtension

Public Methods

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

Protected Methods

Method Description
OnCoverageWasModified ( EventArgs e ) : void

The on coverage was modified.

Private Methods

Method 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 method

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

ClearCache() public method

The clear cache.
public ClearCache ( ) : void
return void

ClearIssues() public method

Clears the issues.
public ClearIssues ( ) : void
return void

GetAvailableModel() public method

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

GetCoverageInEditor() public method

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

GetIssuesForResource() public method

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

GetViewModel() public method

Gets the view model.
public GetViewModel ( ) : object
return object

OnAnalysisModeHasChange() public method

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

OnConnectToSonar() public method

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

OnCoverageInEditorEnabledChanged() public method

The on coverage in editor enabled changed.
public OnCoverageInEditorEnabledChanged ( ) : void
return void

OnCoverageWasModified() protected method

The on coverage was modified.
protected OnCoverageWasModified ( EventArgs e ) : void
e System.EventArgs The e.
return void

OnDisconnect() public method

Called when [disconnect].
public OnDisconnect ( ) : void
return void

OnSelectedViewChanged() public method

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

OnShowFlyoutsChanged() public method

Called when [show flyouts changed].
public OnShowFlyoutsChanged ( ) : void
return void

OnSolutionClosed() public method

The end data association.
public OnSolutionClosed ( ) : void
return void

RefreshDataForResource() public method

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

ResetStats() public method

Reset Stats.
public ResetStats ( ) : void
return void

ServerViewModel() public method

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

TriggerAProjectAnalysis() public method

The trigger a project analysis.
public TriggerAProjectAnalysis ( VsProjectItem project ) : void
project VsProjectItem The project.
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

UpdateOpenDiffWindowList() public method

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

UpdateServices() public method

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