C# Class VSSonarExtensionUi.Model.Menu.SetSqaleMenu

Source Control Related Actions
Inheritance: IMenuItem
Show file Open project: TrimbleSolutionsCorporation/VSSonarQubeExtension Class Usage Examples

Public Methods

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

Associates the with new project.

CancelRefreshData ( ) : void

Cancels the refresh data.

GetViewModel ( ) : object

Gets the view model.

MakeMenu ( ISonarRestService rest, IssueGridViewModel model, INotificationManager manager, ISQKeyTranslator translator, ISonarLocalAnalyser analyser ) : IMenuItem

The make menu.

OnConnectToSonar ( ISonarConfiguration configuration, IEnumerable availableProjectsIn, IIssueTrackerPlugin sourcePlugin ) : void

Called when [connect to sonar].

OnDisconnect ( ) : void

Called when [disconnect].

OnSolutionClosed ( ) : void

The end data association.

RefreshMenuData ( ) : void

Refreshes the menu data for menu that have options that are context dependent on the selected issues.

SetSqaleMenu ( ISonarRestService rest, IssueGridViewModel model, INotificationManager manager, ISQKeyTranslator translator, ISonarLocalAnalyser analyser ) : System

Initializes a new instance of the SourceControlMenu class.

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

Updates the services.

Private Methods

Method Description
AdjustEffortForRule ( ) : void

Adjusts the effort for rule.

OnSetExclusionsMenuCommand ( ) : void

Called when [source control command].

Method Details

AssociateWithNewProject() public method

Associates the with new project.
public AssociateWithNewProject ( Resource project, string workingDir, ISourceControlProvider sourceModel, Profile>.Dictionary profile, string visualStudioVersion ) : void
project Resource The project.
workingDir string The working dir.
sourceModel ISourceControlProvider The source model.
profile Profile>.Dictionary
visualStudioVersion string
return void

CancelRefreshData() public method

Cancels the refresh data.
public CancelRefreshData ( ) : void
return void

GetViewModel() public method

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

MakeMenu() public static method

The make menu.
public static MakeMenu ( ISonarRestService rest, IssueGridViewModel model, INotificationManager manager, ISQKeyTranslator translator, ISonarLocalAnalyser analyser ) : IMenuItem
rest ISonarRestService The rest.
model IssueGridViewModel The model.
manager INotificationManager The manager.
translator ISQKeyTranslator The translator.
analyser ISonarLocalAnalyser
return IMenuItem

OnConnectToSonar() public method

Called when [connect to sonar].
public OnConnectToSonar ( ISonarConfiguration configuration, IEnumerable availableProjectsIn, IIssueTrackerPlugin sourcePlugin ) : void
configuration ISonarConfiguration sonar configuration
availableProjectsIn IEnumerable The available projects in.
sourcePlugin IIssueTrackerPlugin
return void

OnDisconnect() public method

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

OnSolutionClosed() public method

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

RefreshMenuData() public method

Refreshes the menu data for menu that have options that are context dependent on the selected issues.
public RefreshMenuData ( ) : void
return void

SetSqaleMenu() public method

Initializes a new instance of the SourceControlMenu class.
public SetSqaleMenu ( ISonarRestService rest, IssueGridViewModel model, INotificationManager manager, ISQKeyTranslator translator, ISonarLocalAnalyser analyser ) : System
rest ISonarRestService The rest.
model IssueGridViewModel The model.
manager INotificationManager The manager.
translator ISQKeyTranslator The translator.
analyser ISonarLocalAnalyser
return System

UpdateServices() public method

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