C# Class VSSonarExtensionUi.ViewModel.Helpers.IssueGridViewModel

Inheritance: IViewModelBase, IDataModel, IFilterCommand, IFilterOption, IModelBase
Afficher le fichier Open project: TrimbleSolutionsCorporation/VSSonarQubeExtension

Private Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

GetViewModel() public méthode

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

GoToNextIssue() public méthode

Goes to next issue.
public GoToNextIssue ( ) : void
Résultat void

GoToPrevIssue() public méthode

Goes to previous issue.
public GoToPrevIssue ( ) : void
Résultat void

IsNotFiltered() public méthode

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

IssueGridViewModel() public méthode

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.
Résultat System

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

OnDisconnect() public méthode

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

OnOpenInIssueTrackerCommand() public méthode

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

OnOpenInVsCommand() public méthode

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

OnSelectedIssueChanged() public méthode

Called when [selected issue changed].
public OnSelectedIssueChanged ( ) : void
Résultat void

OnShowLeftFlyOutChanged() public méthode

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

OnSolutionClosed() public méthode

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

ProcessChanges() public méthode

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

RefreshStatistics() public méthode

Refreshes the statistics.
public RefreshStatistics ( ) : void
Résultat void

RefreshView() public méthode

The refresh view.
public RefreshView ( ) : void
Résultat void

ReloadMenuData() public méthode

Reloads the menu data.
public ReloadMenuData ( ) : void
Résultat void

ReportTranslationException() public static méthode

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.
Résultat void

ResetColumnsView() public méthode

Resets the columns view.
public ResetColumnsView ( ) : void
Résultat void

ResetStatistics() public méthode

Resets the statistics.
public ResetStatistics ( ) : void
Résultat void

RestoreUserSettingsInIssuesDataGrid() public méthode

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

UpdateIssues() public méthode

The update issues.
public UpdateIssues ( IEnumerable listOfIssues ) : void
listOfIssues IEnumerable /// The list of issues. ///
Résultat void

UpdateServices() public méthode

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.
Résultat void