C# 클래스 VSSonarExtensionUi.ViewModel.Analysis.LocalViewModel

상속: IAnalysisModelBase, IViewModelBase, IModelBase
파일 보기 프로젝트 열기: TrimbleSolutionsCorporation/VSSonarQubeExtension 1 사용 예제들

Private Properties

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

AssociateWithNewProject() 공개 메소드

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
리턴 void

ClearIssues() 공개 메소드

Clears the issues.
public ClearIssues ( ) : void
리턴 void

GetAvailableModel() 공개 메소드

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

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

LocalViewModel() 공개 메소드

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.
리턴 System

OnAnalysisCommand() 공개 메소드

The on analysis command.
public OnAnalysisCommand ( ) : void
리턴 void

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 The available projects.
issuePlugin IIssueTrackerPlugin The issue plugin.
리턴 void

OnDisconnect() 공개 메소드

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

OnFileAnalysisIsEnabledChanged() 공개 메소드

The on file analysis is enabled changed.
public OnFileAnalysisIsEnabledChanged ( ) : void
리턴 void

OnIncrementalCommand() 공개 메소드

The on incremental command.
public OnIncrementalCommand ( ) : void
리턴 void

OnPreviewCommand() 공개 메소드

The on preview command.
public OnPreviewCommand ( ) : void
리턴 void

OnSelectedViewChanged() 공개 메소드

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

OnShowFalsePositivesAndResolvedIssuesChanged() 공개 메소드

Called when [show false positives and resolved issues changed].
public OnShowFalsePositivesAndResolvedIssuesChanged ( ) : void
리턴 void

OnShowFlyoutsChanged() 공개 메소드

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

OnShowIssuesOnModifiedSectionsOfFileOnlyChanged() 공개 메소드

Called when [show issues on modified sections of file only changed].
public OnShowIssuesOnModifiedSectionsOfFileOnlyChanged ( ) : void
리턴 void

OnSolutionClosed() 공개 메소드

The end data association.
public OnSolutionClosed ( ) : void
리턴 void

RefreshDataForResource() 공개 메소드

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].
리턴 void

ResetStats() 공개 메소드

Reset Stats.
public ResetStats ( ) : void
리턴 void

RunAnalysis() 공개 메소드

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

ShowNewAddedIssuesAndLock() 공개 메소드

Shows the new added issues and lock.
public ShowNewAddedIssuesAndLock ( ) : void
리턴 void

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

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