C# Class Microsoft.Samples.VisualStudio.SourceControlIntegration.SccProvider.SccProvider

Inheritance: Microsoft.VisualStudio.Shell.Package, IOleCommandTarget, IVsPersistSolutionProps
Show file Open project: Microsoft/VSSDK-Extensibility-Samples Class Usage Examples

Public Methods

Method Description
GetNodeFiles ( IVsHierarchy hier, uint itemid ) : IList

Returns a list of source controllable files associated with the specified node

GetProjectFileName ( IVsSccProject2 pscp2Project ) : string

Returns the filename of the specified controllable project

GetProjectFiles ( IVsSccProject2 pscp2Project ) : IList

Gets the list of source controllable files in the specified project

GetProjectFiles ( IVsSccProject2 pscp2Project, uint startItemId ) : IList

Gets the list of source controllable files in the specified project

GetService ( Type serviceType ) : Object
GetSolutionFileName ( ) : string

Returns the filename of the solution

GetSolutionFoldersEnum ( ) : Hashtable

Returns a list of solution folders projects in the solution

InCommandLineMode ( ) : bool

Checks whether the provider is invoked in command line mode

IsSolutionFolderProject ( IVsHierarchy pHier ) : bool

Checks whether the specified project is a solution folder

LoadUserOptions ( [ pPersistence, [ grfLoadOpts ) : int
OnActiveStateChange ( ) : void
OnProjectLoadFailure ( [ pStubHierarchy, [ pszProjectName, [ pszProjectMk, [ pszKey ) : int
QuerySaveSolutionProps ( [ pHierarchy, [ pqsspSave ) : int
QueryStatus ( System.Guid &guidCmdGroup, uint cCmds, OLECMD prgCmds, System pCmdText ) : int

The shell call this function to know if a menu item should be visible and if it should be enabled/disabled. Note that this function will only be called when an instance of this editor is open.

ReadSolutionProps ( [ pHierarchy, [ pszProjectName, [ pszProjectMk, [ pszKey, [ fPreLoad, [ pPropBag ) : int
ReadUserOptions ( [ pOptionsStream, [ pszKey ) : int
RefreshNodesGlyphs ( IList selectedNodes ) : void

Refreshes the glyphs of the specified hierarchy nodes

SaveSolutionProps ( [ pHierarchy, [ pPersistence ) : int
SaveUserOptions ( [ pPersistence ) : int
SccProvider ( ) : System
WriteSolutionProps ( [ pHierarchy, [ pszKey, [ pPropBag ) : int
WriteUserOptions ( [ pOptionsStream, [ pszKey ) : int

Protected Methods

Method Description
Dispose ( bool disposing ) : void
Initialize ( ) : void

Private Methods

Method Description
DebugWalkingNode ( IVsHierarchy pHier, uint itemid ) : void
Exec_icmdAddToSourceControl ( object sender, EventArgs e ) : void
Exec_icmdCheckin ( object sender, EventArgs e ) : void
Exec_icmdCheckout ( object sender, EventArgs e ) : void
Exec_icmdToolWindowToolbarCommand ( object sender, EventArgs e ) : void
Exec_icmdUseSccOffline ( object sender, EventArgs e ) : void
Exec_icmdViewToolWindow ( object sender, EventArgs e ) : void
GetLoadedControllableProjectsEnum ( ) : Hashtable

Returns a list of controllable projects in the solution

GetNodeFiles ( IVsSccProject2 pscp2, uint itemid ) : IList

Returns a list of source controllable files associated with the specified node

GetProjectItems ( IVsHierarchy pHier ) : IList

Gets the list of ItemIDs that are nodes in the specified project

GetProjectItems ( IVsHierarchy pHier, uint startItemid ) : IList

Gets the list of ItemIDs that are nodes in the specified project, starting with the specified item

GetSelectedFilesInControlledProjects ( ) : IList

Returns a list of source controllable files in the selection (recursive)

GetSelectedFilesInControlledProjects ( IList &selectedNodes ) : IList

Returns a list of source controllable files in the selection (recursive)

GetSelectedHierarchies ( IList &sel, bool &solutionSelected ) : Hashtable

Gets the list of selected controllable project hierarchies

GetSelectedNodes ( ) : IList

Gets the list of directly selected VSITEMSELECTION objects

IsThereASolution ( ) : bool

Checks whether a solution exist

QueryStatus_icmdAddToSourceControl ( ) : OLECMDF
QueryStatus_icmdCheckin ( ) : OLECMDF
QueryStatus_icmdCheckout ( ) : OLECMDF
QueryStatus_icmdUseSccOffline ( ) : OLECMDF

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetNodeFiles() public method

Returns a list of source controllable files associated with the specified node
public GetNodeFiles ( IVsHierarchy hier, uint itemid ) : IList
hier IVsHierarchy
itemid uint
return IList

GetProjectFileName() public method

Returns the filename of the specified controllable project
public GetProjectFileName ( IVsSccProject2 pscp2Project ) : string
pscp2Project IVsSccProject2
return string

GetProjectFiles() public method

Gets the list of source controllable files in the specified project
public GetProjectFiles ( IVsSccProject2 pscp2Project ) : IList
pscp2Project IVsSccProject2
return IList

GetProjectFiles() public method

Gets the list of source controllable files in the specified project
public GetProjectFiles ( IVsSccProject2 pscp2Project, uint startItemId ) : IList
pscp2Project IVsSccProject2
startItemId uint
return IList

GetService() public method

public GetService ( Type serviceType ) : Object
serviceType System.Type
return Object

GetSolutionFileName() public method

Returns the filename of the solution
public GetSolutionFileName ( ) : string
return string

GetSolutionFoldersEnum() public method

Returns a list of solution folders projects in the solution
public GetSolutionFoldersEnum ( ) : Hashtable
return System.Collections.Hashtable

InCommandLineMode() public method

Checks whether the provider is invoked in command line mode
public InCommandLineMode ( ) : bool
return bool

Initialize() protected method

protected Initialize ( ) : void
return void

IsSolutionFolderProject() public method

Checks whether the specified project is a solution folder
public IsSolutionFolderProject ( IVsHierarchy pHier ) : bool
pHier IVsHierarchy
return bool

LoadUserOptions() public method

public LoadUserOptions ( [ pPersistence, [ grfLoadOpts ) : int
pPersistence [
grfLoadOpts [
return int

OnActiveStateChange() public method

public OnActiveStateChange ( ) : void
return void

OnProjectLoadFailure() public method

public OnProjectLoadFailure ( [ pStubHierarchy, [ pszProjectName, [ pszProjectMk, [ pszKey ) : int
pStubHierarchy [
pszProjectName [
pszProjectMk [
pszKey [
return int

QuerySaveSolutionProps() public method

public QuerySaveSolutionProps ( [ pHierarchy, [ pqsspSave ) : int
pHierarchy [
pqsspSave [
return int

QueryStatus() public method

The shell call this function to know if a menu item should be visible and if it should be enabled/disabled. Note that this function will only be called when an instance of this editor is open.
public QueryStatus ( System.Guid &guidCmdGroup, uint cCmds, OLECMD prgCmds, System pCmdText ) : int
guidCmdGroup System.Guid Guid describing which set of command the current command(s) belong to
cCmds uint Number of command which status are being asked for
prgCmds OLECMD Information for each command
pCmdText System Used to dynamically change the command text
return int

ReadSolutionProps() public method

public ReadSolutionProps ( [ pHierarchy, [ pszProjectName, [ pszProjectMk, [ pszKey, [ fPreLoad, [ pPropBag ) : int
pHierarchy [
pszProjectName [
pszProjectMk [
pszKey [
fPreLoad [
pPropBag [
return int

ReadUserOptions() public method

public ReadUserOptions ( [ pOptionsStream, [ pszKey ) : int
pOptionsStream [
pszKey [
return int

RefreshNodesGlyphs() public method

Refreshes the glyphs of the specified hierarchy nodes
public RefreshNodesGlyphs ( IList selectedNodes ) : void
selectedNodes IList
return void

SaveSolutionProps() public method

public SaveSolutionProps ( [ pHierarchy, [ pPersistence ) : int
pHierarchy [
pPersistence [
return int

SaveUserOptions() public method

public SaveUserOptions ( [ pPersistence ) : int
pPersistence [
return int

SccProvider() public method

public SccProvider ( ) : System
return System

WriteSolutionProps() public method

public WriteSolutionProps ( [ pHierarchy, [ pszKey, [ pPropBag ) : int
pHierarchy [
pszKey [
pPropBag [
return int

WriteUserOptions() public method

public WriteUserOptions ( [ pOptionsStream, [ pszKey ) : int
pOptionsStream [
pszKey [
return int