C# Class VSSonarQubeExtension.Helpers.VsPropertiesHelper

The vs properties helper.
Inheritance: IVsEnvironmentHelper
ファイルを表示 Open project: TrimbleSolutionsCorporation/VSSonarQubeExtension

Public Methods

Method Description
ActiveConfiguration ( ) : string

The active configuration.

ActiveFileFullPath ( ) : string

The get active file full path 1.

ActivePlatform ( ) : string

The active platform.

ActiveProjectFileFullPath ( ) : string

The get active project from solution full name.

ActiveProjectName ( ) : string

The get active project from solution name.

ActiveSolutionFullName ( ) : string

The get solution path.

ActiveSolutionName ( ) : string

The get solution path.

ActiveSolutionPath ( ) : string

The get solution path.

AreWeRunningInVisualStudio ( ) : bool

The are we running in visual studio.

ClearDiffFile ( string localFileName, string serverFileName ) : void

The clear diff file.

CurrentSelectedDocumentLanguage ( ) : string

The get document language.

DoIHaveAdminRights ( ) : bool

Does the i have admin rights.

Environment ( ) : DTE2

The get environment.

EvaluatedValueForIncludeFile ( string msbuildProjectFile, string filePath ) : string

Evaluated the value for include file.

GetCurrentDocumentInView ( ) : string

Gets the current document in view.

GetCurrentRoslynSolution ( ) : Microsoft.CodeAnalysis.Solution

Gets the current roslyn solution.

GetCurrentTextInView ( ) : string

The get current text in view.

GetCurrentView ( ) : IWpfTextView

The get current view.

GetDocumentLanguage ( Document doc ) : string

The get document language.

GetFileRealPathForSolution ( string fileInView ) : string

The get file real path for solution.

GetGuidForProject ( string projectPath, string solutionPath ) : string

Gets the project guid from path.

GetProjectByGuidInSolution ( string guid, string solutionPath ) : VsProjectItem

Gets the project by unique identifier in solution.

GetProjectByNameInSolution ( string name, string solutionPath ) : VsProjectItem

Gets the project by name in solution.

GetProperFilePathCapitalization ( string filename ) : string

The get proper file path capitalization.

NavigateToResource ( string url ) : void

The navigate to resource.

OpenResourceInVisualStudio ( string filename, int line, string editorCommandExec = "notepad" ) : void

The open resource in visual studio.

OpenResourceInVisualStudio ( string workfolder, string filename, int line, string editorCommandExec = "notepad" ) : void

The open resource in visual studio.

ReadSavedOption ( string category, string page, string item ) : string

The get saved option.

RestartVisualStudio ( ) : void

The restart visual studio.

SetCurrentDocumentInView ( string fullName ) : void

Sets the current document in view.

ShowSourceDiff ( string resourceInEditor, string documentInViewPath ) : void

The show source diff.

SolutionPath ( DTE2 applicationObject ) : string

The solution path.

VsFileItem ( string filename, Resource associatedProject, Resource fileResource ) : VSSonarPlugins.Types.VsFileItem

The vs file item.

VsFileItem ( string fullPath, string projectFullPath, Resource associatedProject, Resource fileResource ) : VSSonarPlugins.Types.VsFileItem

The vs file item.

VsProjectItem ( string filename, Resource associatedProject ) : VsProjectItem

The vs project item.

VsPropertiesHelper ( DTE2 environment, IServiceProvider service ) : System

Initializes a new instance of the VsPropertiesHelper class.

WriteDefaultOption ( string category, string page, string item, string value ) : void

The set default option.

WriteOption ( string category, string page, string item, string value ) : void

The set option.

WriteToVisualStudioOutput ( string errorMessage ) : void

The write to visual studio output.

Private Methods

Method Description
CreateVsProjectItem ( ProjectTypes project ) : VsProjectItem

Creates the vs project item.

GetLongPathName ( string shortPath, StringBuilder sb, int buffer ) : uint
GetProperDirectoryCapitalization ( DirectoryInfo dirInfo ) : string

The get proper directory capitalization.

RecursePath ( string fileName, string path, List paths ) : void

The recurse path.

Method Details

ActiveConfiguration() public method

The active configuration.
public ActiveConfiguration ( ) : string
return string

ActiveFileFullPath() public method

The get active file full path 1.
public ActiveFileFullPath ( ) : string
return string

ActivePlatform() public method

The active platform.
public ActivePlatform ( ) : string
return string

ActiveProjectFileFullPath() public method

The get active project from solution full name.
public ActiveProjectFileFullPath ( ) : string
return string

ActiveProjectName() public method

The get active project from solution name.
public ActiveProjectName ( ) : string
return string

ActiveSolutionFullName() public method

The get solution path.
public ActiveSolutionFullName ( ) : string
return string

ActiveSolutionName() public method

The get solution path.
public ActiveSolutionName ( ) : string
return string

ActiveSolutionPath() public method

The get solution path.
public ActiveSolutionPath ( ) : string
return string

AreWeRunningInVisualStudio() public method

The are we running in visual studio.
public AreWeRunningInVisualStudio ( ) : bool
return bool

ClearDiffFile() public method

The clear diff file.
public ClearDiffFile ( string localFileName, string serverFileName ) : void
localFileName string The local file name.
serverFileName string The server file name.
return void

CurrentSelectedDocumentLanguage() public method

The get document language.
public CurrentSelectedDocumentLanguage ( ) : string
return string

DoIHaveAdminRights() public method

Does the i have admin rights.
public DoIHaveAdminRights ( ) : bool
return bool

Environment() public method

The get environment.
public Environment ( ) : DTE2
return DTE2

EvaluatedValueForIncludeFile() public method

Evaluated the value for include file.
public EvaluatedValueForIncludeFile ( string msbuildProjectFile, string filePath ) : string
msbuildProjectFile string The msbuild project file.
filePath string The file path.
return string

GetCurrentDocumentInView() public method

Gets the current document in view.
public GetCurrentDocumentInView ( ) : string
return string

GetCurrentRoslynSolution() public method

Gets the current roslyn solution.
public GetCurrentRoslynSolution ( ) : Microsoft.CodeAnalysis.Solution
return Microsoft.CodeAnalysis.Solution

GetCurrentTextInView() public method

The get current text in view.
public GetCurrentTextInView ( ) : string
return string

GetCurrentView() public method

The get current view.
public GetCurrentView ( ) : IWpfTextView
return IWpfTextView

GetDocumentLanguage() public static method

The get document language.
public static GetDocumentLanguage ( Document doc ) : string
doc Document /// The doc. ///
return string

GetFileRealPathForSolution() public method

The get file real path for solution.
public GetFileRealPathForSolution ( string fileInView ) : string
fileInView string /// The file in view. ///
return string

GetGuidForProject() public method

Gets the project guid from path.
public GetGuidForProject ( string projectPath, string solutionPath ) : string
projectPath string The project path.
solutionPath string The solution path.
return string

GetProjectByGuidInSolution() public method

Gets the project by unique identifier in solution.
public GetProjectByGuidInSolution ( string guid, string solutionPath ) : VsProjectItem
guid string The unique identifier.
solutionPath string The solution path.
return VsProjectItem

GetProjectByNameInSolution() public method

Gets the project by name in solution.
public GetProjectByNameInSolution ( string name, string solutionPath ) : VsProjectItem
name string The name.
solutionPath string The solution path.
return VsProjectItem

GetProperFilePathCapitalization() public method

The get proper file path capitalization.
public GetProperFilePathCapitalization ( string filename ) : string
filename string /// The filename. ///
return string

NavigateToResource() public method

The navigate to resource.
public NavigateToResource ( string url ) : void
url string /// The url. ///
return void

OpenResourceInVisualStudio() public method

The open resource in visual studio.
public OpenResourceInVisualStudio ( string filename, int line, string editorCommandExec = "notepad" ) : void
filename string The filename.
line int The line.
editorCommandExec string The editor command exec.
return void

OpenResourceInVisualStudio() public method

The open resource in visual studio.
public OpenResourceInVisualStudio ( string workfolder, string filename, int line, string editorCommandExec = "notepad" ) : void
workfolder string /// The workfolder. ///
filename string /// The filename. ///
line int /// The line. ///
editorCommandExec string /// The editor Command Exec. ///
return void

ReadSavedOption() public method

The get saved option.
public ReadSavedOption ( string category, string page, string item ) : string
category string /// The category. ///
page string /// The page. ///
item string /// The item. ///
return string

RestartVisualStudio() public method

The restart visual studio.
public RestartVisualStudio ( ) : void
return void

SetCurrentDocumentInView() public method

Sets the current document in view.
public SetCurrentDocumentInView ( string fullName ) : void
fullName string The full name.
return void

ShowSourceDiff() public method

The show source diff.
public ShowSourceDiff ( string resourceInEditor, string documentInViewPath ) : void
resourceInEditor string /// The resource in editor. ///
documentInViewPath string /// The document in view path. ///
return void

SolutionPath() public static method

The solution path.
public static SolutionPath ( DTE2 applicationObject ) : string
applicationObject DTE2 /// The application object. ///
return string

VsFileItem() public method

The vs file item.
public VsFileItem ( string filename, Resource associatedProject, Resource fileResource ) : VSSonarPlugins.Types.VsFileItem
filename string The filename.
associatedProject VSSonarPlugins.Types.Resource The associated project.
fileResource VSSonarPlugins.Types.Resource The file resource.
return VSSonarPlugins.Types.VsFileItem

VsFileItem() public method

The vs file item.
public VsFileItem ( string fullPath, string projectFullPath, Resource associatedProject, Resource fileResource ) : VSSonarPlugins.Types.VsFileItem
fullPath string The full Path.
projectFullPath string The project Full Path.
associatedProject VSSonarPlugins.Types.Resource The associated project.
fileResource VSSonarPlugins.Types.Resource The file resource.
return VSSonarPlugins.Types.VsFileItem

VsProjectItem() public method

The vs project item.
public VsProjectItem ( string filename, Resource associatedProject ) : VsProjectItem
filename string The filename.
associatedProject VSSonarPlugins.Types.Resource The associated project.
return VsProjectItem

VsPropertiesHelper() public method

Initializes a new instance of the VsPropertiesHelper class.
public VsPropertiesHelper ( DTE2 environment, IServiceProvider service ) : System
environment DTE2 /// The environment 2. ///
service IServiceProvider /// The service. ///
return System

WriteDefaultOption() public method

The set default option.
public WriteDefaultOption ( string category, string page, string item, string value ) : void
category string /// The category. ///
page string /// The page. ///
item string /// The item. ///
value string /// The value. ///
return void

WriteOption() public method

The set option.
public WriteOption ( string category, string page, string item, string value ) : void
category string /// The category. ///
page string /// The page. ///
item string /// The item. ///
value string /// The value. ///
return void

WriteToVisualStudioOutput() public method

The write to visual studio output.
public WriteToVisualStudioOutput ( string errorMessage ) : void
errorMessage string /// The error message. ///
return void