C# Class VSSonarExtensionUi.ViewModel.Analysis.LocalViewModel

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

Private Properties

Свойство Type Description
CreateRowContextMenu ObservableCollection
FilterIssuesWithFalsePositives List
GetUpdateTimeFromAssembly System.DateTime
InitCommanding void
OnCloseLeftFlyoutCommand void
OnGoToNextIssueCommand void
OnGoToPrevIssueCommand void
OnOpenLogCommand void
OnOpenSourceDirCommand void
OnStopLocalAnalysisCommand void
PopulateFalsePositivesAndResolvedItems void
ReloadSavedOptions void
RunLocalAnalysis void
ShowHideLeftFlyout void
UpdateLocalIssues void
UpdateNewLocalIssues void
UpdateOutputMessagesFromPlugin void
ValidateAdminRights void
WasAssemblyUpdated bool

Méthodes publiques

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

The init data association.

ClearIssues ( ) : void

Clears the issues.

GetAvailableModel ( ) : object

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

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

The get issues for resource.

GetViewModel ( ) : object

Gets the view model.

LocalViewModel ( IList pluginsIn, ISonarRestService service, IConfigurationHelper configurationHelper, INotificationManager notificationManager, ISQKeyTranslator translator, ISonarLocalAnalyser analyser, Dictionary newIssuesList ) : System

Initializes a new instance of the LocalViewModel class.

OnAnalysisCommand ( ) : void

The on analysis command.

OnAnalysisModeHasChange ( EventArgs e ) : void

The on changed.

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

Called when [connect to sonar].

OnDisconnect ( ) : void

Called when [disconnect].

OnFileAnalysisIsEnabledChanged ( ) : void

The on file analysis is enabled changed.

OnIncrementalCommand ( ) : void

The on incremental command.

OnPreviewCommand ( ) : void

The on preview command.

OnSelectedViewChanged ( ) : void

The on selected view changed.

OnShowFalsePositivesAndResolvedIssuesChanged ( ) : void

Called when [show false positives and resolved issues changed].

OnShowFlyoutsChanged ( ) : void

Called when [show flyouts changed].

OnShowIssuesOnModifiedSectionsOfFileOnlyChanged ( ) : void

Called when [show issues on modified sections of file only changed].

OnSolutionClosed ( ) : void

The end data association.

RefreshDataForResource ( Resource resourceFile, string resourceName, string content, bool fromSave ) : void

The refresh data for resource.

ResetStats ( ) : void

Reset Stats.

RunAnalysis ( AnalysisTypes mode, bool fromSave ) : void

Runs the analysis.

ShowNewAddedIssuesAndLock ( ) : void

Shows the new added issues and lock.

TriggerAProjectAnalysis ( VsProjectItem project ) : void

The trigger a project analysis.

UpdateColours ( Color background, Color foreground ) : void

The update colours.

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

The update services.

Private Methods

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

The create row context menu.

FilterIssuesWithFalsePositives ( List issues ) : List

Filters the issues with false positives.

GetUpdateTimeFromAssembly ( string outputPath ) : System.DateTime

Gets the update time from assembly.

InitCommanding ( ) : void

The init commanding.

OnCloseLeftFlyoutCommand ( ) : void

The on flyout log viewer command.

OnGoToNextIssueCommand ( ) : void

Called when [go to next issue command].

OnGoToPrevIssueCommand ( ) : void

Called when [go to previous issue command].

OnOpenLogCommand ( ) : void

Called when [open log command].

OnOpenSourceDirCommand ( ) : void

The on open source dir command.

OnStopLocalAnalysisCommand ( ) : void

The on stop local analysis command.

PopulateFalsePositivesAndResolvedItems ( ) : void

Populates the false positives and resolved items.

ReloadSavedOptions ( IConfigurationHelper configurationHelperIn ) : void

Reloads the saved options.

RunLocalAnalysis ( AnalysisTypes analysis, bool fromSave ) : void

The run local analysis new.

ShowHideLeftFlyout ( object sender, EventArgs e ) : void

Shows the hide left flyout.

UpdateLocalIssues ( object sender, EventArgs e ) : void

The update local issues in view.

UpdateNewLocalIssues ( ) : void

The update local issues in view.

UpdateOutputMessagesFromPlugin ( object sender, EventArgs e ) : void

The update output messages from plugin.

ValidateAdminRights ( ) : void

Validates the admin rights.

WasAssemblyUpdated ( VsProjectItem project ) : bool

Wases the assembly updated.

Method Details

AssociateWithNewProject() public méthode

The init data association.
public AssociateWithNewProject ( Resource project, string workingDir, ISourceControlProvider provider, Profile>.Dictionary profile, string visualStudioVersion ) : void
project Resource The project.
workingDir string The working dir.
provider ISourceControlProvider The provider.
profile Profile>.Dictionary The profile.
visualStudioVersion string
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 view models are split into models and view models
public GetAvailableModel ( ) : object
Résultat object

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

LocalViewModel() public méthode

Initializes a new instance of the LocalViewModel class.
public LocalViewModel ( IList pluginsIn, ISonarRestService service, IConfigurationHelper configurationHelper, INotificationManager notificationManager, ISQKeyTranslator translator, ISonarLocalAnalyser analyser, Dictionary newIssuesList ) : System
pluginsIn IList The plugin data.
service ISonarRestService The service.
configurationHelper IConfigurationHelper The configuration helper.
notificationManager INotificationManager The notification manager.
translator ISQKeyTranslator The translator.
analyser ISonarLocalAnalyser The analyzer.
newIssuesList Dictionary The new issues list.
Résultat System

OnAnalysisCommand() public méthode

The on analysis command.
public OnAnalysisCommand ( ) : void
Résultat void

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 The available projects.
issuePlugin IIssueTrackerPlugin The issue plugin.
Résultat void

OnDisconnect() public méthode

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

OnFileAnalysisIsEnabledChanged() public méthode

The on file analysis is enabled changed.
public OnFileAnalysisIsEnabledChanged ( ) : void
Résultat void

OnIncrementalCommand() public méthode

The on incremental command.
public OnIncrementalCommand ( ) : void
Résultat void

OnPreviewCommand() public méthode

The on preview command.
public OnPreviewCommand ( ) : void
Résultat void

OnSelectedViewChanged() public méthode

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

OnShowFalsePositivesAndResolvedIssuesChanged() public méthode

Called when [show false positives and resolved issues changed].
public OnShowFalsePositivesAndResolvedIssuesChanged ( ) : void
Résultat void

OnShowFlyoutsChanged() public méthode

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

OnShowIssuesOnModifiedSectionsOfFileOnlyChanged() public méthode

Called when [show issues on modified sections of file only changed].
public OnShowIssuesOnModifiedSectionsOfFileOnlyChanged ( ) : 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 resourceFile, string resourceName, string content, bool fromSave ) : void
resourceFile Resource The resource file.
resourceName string Name of the resource.
content string The content.
fromSave bool if set to true [from save].
Résultat void

ResetStats() public méthode

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

RunAnalysis() public méthode

Runs the analysis.
public RunAnalysis ( AnalysisTypes mode, bool fromSave ) : void
mode AnalysisTypes The mode.
fromSave bool if set to true [from save].
Résultat void

ShowNewAddedIssuesAndLock() public méthode

Shows the new added issues and lock.
public ShowNewAddedIssuesAndLock ( ) : void
Résultat void

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

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