C# Class VSSonarExtensionUi.ViewModel.Helpers.IssueGridViewModel

Inheritance: IViewModelBase, IDataModel, IFilterCommand, IFilterOption, IModelBase
Exibir arquivo Open project: TrimbleSolutionsCorporation/VSSonarQubeExtension

Private Properties

Property Type Description
ClearFilter void
CreateColumnVisibiltyMenu ObservableCollection
GetIndex int
GetValueForOption string
InitFilterCommanding void
OnClearClearFilterTermRuleCommand void
OnClearFilterTermAssigneeCommand void
OnClearFilterTermAuthorCommand void
OnClearFilterTermComponentCommand void
OnClearFilterTermIsNewCommand void
OnClearFilterTermIssueTrackerCommand void
OnClearFilterTermMessageCommand void
OnClearFilterTermProjectCommand void
OnClearFilterTermResolutionCommand void
OnClearFilterTermSeverityCommand void
OnClearFilterTermStatusCommand void
OnColumnHeaderChangedCommand void
OnFilterApplyCommand void
OnFilterClearAllCommand void
OnGoToNextIssueCommand void
OnGoToPrevIssueCommand void
OnMouseEventCommand void
PopulateStatistics void
ReadWindowOptions void
ResetWindowDefaults void
SaveWindowOptions void
ShowLeftFlyout void
UpdateStatistics void
WriteWindowOptions void

Public Methods

Method Description
AssociateWithNewProject ( Resource project, string workingDir, ISourceControlProvider providerIn, Profile>.Dictionary profile, string visualStudioVersion ) : void

Associates the with new project.

GetAvailableModel ( ) : object

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

GetViewModel ( ) : object

Gets the view model.

GoToNextIssue ( ) : void

Goes to next issue.

GoToPrevIssue ( ) : void

Goes to previous issue.

IsNotFiltered ( Issue issue ) : bool

The is not filtered.

IssueGridViewModel ( string gridId, bool showSqaleRating, IConfigurationHelper helper, ISonarRestService restServiceIn, INotificationManager notManager, ISQKeyTranslator keyTranslatorIn ) : System

Initializes a new instance of the IssueGridViewModel class.

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

Called when [connect to sonar].

OnDisconnect ( ) : void

Called when [disconnect].

OnOpenInIssueTrackerCommand ( ) : void

Called when [open in issue tracker command].

OnOpenInVsCommand ( object parameter ) : void

The on open in vs command.

OnSelectedIssueChanged ( ) : void

Called when [selected issue changed].

OnShowLeftFlyOutChanged ( ) : void

Called when [show left fly out changed].

OnSolutionClosed ( ) : void

The end data association.

ProcessChanges ( object sender, PropertyChangedEventArgs propertyChangedEventArgs ) : void

The process changes.

RefreshStatistics ( ) : void

Refreshes the statistics.

RefreshView ( ) : void

The refresh view.

ReloadMenuData ( ) : void

Reloads the menu data.

ReportTranslationException ( Issue issue, string translatedPath, INotificationManager manager, ISonarRestService service, Resource associatedProject, Exception ex = null ) : void

Reports the translation exception.

ResetColumnsView ( ) : void

Resets the columns view.

ResetStatistics ( ) : void

Resets the statistics.

RestoreUserSettingsInIssuesDataGrid ( ) : void

The restore user settings.

UpdateColours ( Color background, Color foreground ) : void

The update colours.

UpdateIssues ( IEnumerable listOfIssues ) : void

The update issues.

UpdateServices ( IVsEnvironmentHelper vsenvironmenthelperIn, IVSSStatusBar statusBar, IServiceProvider providerIn ) : void

Updates the services.

Private Methods

Method Description
ClearFilter ( ) : void

The clear filter.

CreateColumnVisibiltyMenu ( ) : ObservableCollection

The create column visibilty menu.

GetIndex ( int &index ) : int

Gets the index.

GetValueForOption ( IConfigurationHelper helper, string key, string defaultvalue, string owner ) : string

Gets the value for option.

InitFilterCommanding ( ) : void

The init filter commanding.

OnClearClearFilterTermRuleCommand ( object obj ) : void

The on clear clear filter term rule command.

OnClearFilterTermAssigneeCommand ( object obj ) : void

The on clear filter term assignee command.

OnClearFilterTermAuthorCommand ( object obj ) : void

The on clear filter term assignee command.

OnClearFilterTermComponentCommand ( object obj ) : void

The on clear filter term component command.

OnClearFilterTermIsNewCommand ( object obj ) : void

The on clear filter term is new command.

OnClearFilterTermIssueTrackerCommand ( object obj ) : void

Called when [clear filter term issue tracker command].

OnClearFilterTermMessageCommand ( object obj ) : void

The on clear filter term message command.

OnClearFilterTermProjectCommand ( object obj ) : void

The on clear filter term project command.

OnClearFilterTermResolutionCommand ( object obj ) : void

The on clear filter term resolution command.

OnClearFilterTermSeverityCommand ( object obj ) : void

The on clear filter term severity command.

OnClearFilterTermStatusCommand ( object obj ) : void

The on clear filter term status command.

OnColumnHeaderChangedCommand ( ) : void

The on column header changed command.

OnFilterApplyCommand ( ) : void

The on filter apply command.

OnFilterClearAllCommand ( object obj ) : void

The on filter clear all command.

OnGoToNextIssueCommand ( ) : void

The on go to next issue command.

OnGoToPrevIssueCommand ( ) : void

The on go to prev issue command.

OnMouseEventCommand ( ) : void

The on mouse event command.

PopulateStatistics ( Issue issue ) : void

Populates the statistics.

ReadWindowOptions ( IConfigurationHelper options, string owner ) : void

The read window options.

ResetWindowDefaults ( ) : void

The reset window defaults.

SaveWindowOptions ( ) : void

The write window options.

ShowLeftFlyout ( EventArgs e ) : void

Shows the left flyout.

UpdateStatistics ( ) : void

Updates the statistics.

WriteWindowOptions ( ) : void

The write window options.

Method Details

AssociateWithNewProject() public method

Associates the with new project.
public AssociateWithNewProject ( Resource project, string workingDir, ISourceControlProvider providerIn, Profile>.Dictionary profile, string visualStudioVersion ) : void
project VSSonarPlugins.Types.Resource The project.
workingDir string The working dir.
providerIn ISourceControlProvider The provider in.
profile Profile>.Dictionary
visualStudioVersion string
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

GetViewModel() public method

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

GoToNextIssue() public method

Goes to next issue.
public GoToNextIssue ( ) : void
return void

GoToPrevIssue() public method

Goes to previous issue.
public GoToPrevIssue ( ) : void
return void

IsNotFiltered() public method

The is not filtered.
public IsNotFiltered ( Issue issue ) : bool
issue VSSonarPlugins.Types.Issue /// The issue. ///
return bool

IssueGridViewModel() public method

Initializes a new instance of the IssueGridViewModel class.
public IssueGridViewModel ( string gridId, bool showSqaleRating, IConfigurationHelper helper, ISonarRestService restServiceIn, INotificationManager notManager, ISQKeyTranslator keyTranslatorIn ) : System
gridId string The grid Id.
showSqaleRating bool if set to true [show sqale rating].
helper IConfigurationHelper The helper.
restServiceIn ISonarRestService The rest service in.
notManager INotificationManager The not manager.
keyTranslatorIn ISQKeyTranslator The key translator in.
return System

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

OnDisconnect() public method

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

OnOpenInIssueTrackerCommand() public method

Called when [open in issue tracker command].
public OnOpenInIssueTrackerCommand ( ) : void
return void

OnOpenInVsCommand() public method

The on open in vs command.
public OnOpenInVsCommand ( object parameter ) : void
parameter object /// The parameter. ///
return void

OnSelectedIssueChanged() public method

Called when [selected issue changed].
public OnSelectedIssueChanged ( ) : void
return void

OnShowLeftFlyOutChanged() public method

Called when [show left fly out changed].
public OnShowLeftFlyOutChanged ( ) : void
return void

OnSolutionClosed() public method

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

ProcessChanges() public method

The process changes.
public ProcessChanges ( object sender, PropertyChangedEventArgs propertyChangedEventArgs ) : void
sender object /// The sender. ///
propertyChangedEventArgs System.ComponentModel.PropertyChangedEventArgs /// The property changed event args. ///
return void

RefreshStatistics() public method

Refreshes the statistics.
public RefreshStatistics ( ) : void
return void

RefreshView() public method

The refresh view.
public RefreshView ( ) : void
return void

ReloadMenuData() public method

Reloads the menu data.
public ReloadMenuData ( ) : void
return void

ReportTranslationException() public static method

Reports the translation exception.
public static ReportTranslationException ( Issue issue, string translatedPath, INotificationManager manager, ISonarRestService service, Resource associatedProject, Exception ex = null ) : void
issue VSSonarPlugins.Types.Issue The issue.
translatedPath string The translated path.
manager INotificationManager
service ISonarRestService
associatedProject VSSonarPlugins.Types.Resource
ex System.Exception The ex.
return void

ResetColumnsView() public method

Resets the columns view.
public ResetColumnsView ( ) : void
return void

ResetStatistics() public method

Resets the statistics.
public ResetStatistics ( ) : void
return void

RestoreUserSettingsInIssuesDataGrid() public method

The restore user settings.
public RestoreUserSettingsInIssuesDataGrid ( ) : void
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

UpdateIssues() public method

The update issues.
public UpdateIssues ( IEnumerable listOfIssues ) : void
listOfIssues IEnumerable /// The list of issues. ///
return void

UpdateServices() public method

Updates the services.
public UpdateServices ( IVsEnvironmentHelper vsenvironmenthelperIn, IVSSStatusBar statusBar, IServiceProvider providerIn ) : void
vsenvironmenthelperIn IVsEnvironmentHelper The vsenvironmenthelper in.
statusBar IVSSStatusBar The status bar.
providerIn IServiceProvider The provider in.
return void