C# Class SonarLint.VisualStudio.Integration.SonarLintSqmFacade

Implementation of the facade to raise SQM commands.
Note that this facade only raises the commands via the DTE. There also needs to be code to handle the commands.
Datei anzeigen Open project: SonarSource-VisualStudio/sonarlint-visualstudio

Public Methods

Method Description
BindCommand ( ) : void

SQM command for BindCommand.

BoundSolutionDetected ( ) : void

SQM command for BoundSolutionDetected.

BrowseToProjectDashboardCommand ( ) : void

SQM command for BrowseToProjectDashboardCommand.

BrowseToUrlCommand ( ) : void

SQM command for BrowseToUrlCommand.

ConnectCommand ( ) : void

SQM command for ConnectCommand.

DisconnectCommand ( ) : void

SQM command for DisconnectCommand.

DontWarnAgainCommand ( ) : void

SQM command for DontWarnAgainCommand.

ErrorListInfoBarShow ( ) : void

SQM command for ErrorListInfoBarShow.

ErrorListInfoBarUpdateCommand ( ) : void

SQM command for ErrorListInfoBarUpdateCommand.

FixConflictsCommand ( ) : void

SQM command for FixConflictsCommand.

FixConflictsShow ( ) : void

SQM command for FixConflictsShow.

Initialize ( IServiceProvider provider ) : void

Initialize the SQM facade.

This method can be called multiple times, but any calls after the first successful call will be no-ops.

RefreshCommand ( ) : void

SQM command for RefreshCommand.

ToggleShowAllProjectsCommand ( ) : void

SQM command for ToggleShowAllProjectsCommand.

Private Methods

Method Description
DEBUG_CheckSqmInitialized ( ) : void
DEBUG_LogSqmCommandsToOutputWindow ( string command ) : void
DEBUG_Reset ( ) : void
DEBUG_SetSqmInitialized ( ) : void
LogSqmException ( Exception ex ) : void

Partial method called if an exception occurs when raising the SQM command.

This is an extension point to the text template to allow customized error processing.

Reset ( ) : void

Internal method to reset the facade to its uninitialized state.

This methods only exists for testing i.e. so unit tests can reset the facade to try out different test cases.

RunCommand ( System.Guid commandGroup, int commandId ) : void

Method Details

BindCommand() public static method

SQM command for BindCommand.
public static BindCommand ( ) : void
return void

BoundSolutionDetected() public static method

SQM command for BoundSolutionDetected.
public static BoundSolutionDetected ( ) : void
return void

BrowseToProjectDashboardCommand() public static method

SQM command for BrowseToProjectDashboardCommand.
public static BrowseToProjectDashboardCommand ( ) : void
return void

BrowseToUrlCommand() public static method

SQM command for BrowseToUrlCommand.
public static BrowseToUrlCommand ( ) : void
return void

ConnectCommand() public static method

SQM command for ConnectCommand.
public static ConnectCommand ( ) : void
return void

DisconnectCommand() public static method

SQM command for DisconnectCommand.
public static DisconnectCommand ( ) : void
return void

DontWarnAgainCommand() public static method

SQM command for DontWarnAgainCommand.
public static DontWarnAgainCommand ( ) : void
return void

ErrorListInfoBarShow() public static method

SQM command for ErrorListInfoBarShow.
public static ErrorListInfoBarShow ( ) : void
return void

ErrorListInfoBarUpdateCommand() public static method

SQM command for ErrorListInfoBarUpdateCommand.
public static ErrorListInfoBarUpdateCommand ( ) : void
return void

FixConflictsCommand() public static method

SQM command for FixConflictsCommand.
public static FixConflictsCommand ( ) : void
return void

FixConflictsShow() public static method

SQM command for FixConflictsShow.
public static FixConflictsShow ( ) : void
return void

Initialize() public static method

Initialize the SQM facade.
This method can be called multiple times, but any calls after the first successful call will be no-ops.
public static Initialize ( IServiceProvider provider ) : void
provider IServiceProvider
return void

RefreshCommand() public static method

SQM command for RefreshCommand.
public static RefreshCommand ( ) : void
return void

ToggleShowAllProjectsCommand() public static method

SQM command for ToggleShowAllProjectsCommand.
public static ToggleShowAllProjectsCommand ( ) : void
return void