C# Class GitMenu.Services.GitSccProvider

Inheritance: IVsSccProvider, IVsSccManager2, IVsQueryEditQuerySave3, IVsSccGlyphs
Exibir arquivo Open project: kthompson/gitmenu

Public Methods

Method Description
AnyItemsUnderSourceControl ( int &pfResult ) : int
BrowseForProject ( string &pbstrDirectory, int &pfOK ) : int
CancelAfterBrowseForProject ( ) : int
GetCustomGlyphList ( uint baseIndex, uint &pdwImageListHandle ) : int
GetGlyphFromPath ( string path ) : GitGlyph
GetSccGlyph ( int cFiles, string rgpszFullPaths, VsStateIcon rgsiGlyphs, uint rgdwSccStatus ) : int
GetSccGlyphFromStatus ( uint dwSccStatus, VsStateIcon psiGlyph ) : int
GetSolutionFileName ( ) : string

Returns the filename of the solution

GitSccProvider ( GitMenuPackage package ) : System
IsInstalled ( int &pbInstalled ) : int
QuerySaveFile2 ( string pszMkDocument, uint rgf, VSQEQS_FILE_ATTRIBUTE_DATA pFileInfo, uint &pdwQSResult, uint &prgfMoreInfo ) : int
QuerySaveFiles2 ( uint rgfQuerySave, int cFiles, string rgpszMkDocuments, uint rgrgf, VSQEQS_FILE_ATTRIBUTE_DATA rgFileInfo, uint &pdwQSResult, uint &prgfMoreInfo ) : int
RefreshAllGlyphs ( ) : void
RefreshGlyphs ( IList selectedNodes ) : void

Refreshes the glyphs of the specified hierarchy nodes

RefreshGlyphs ( List names ) : void
RegisterSccProject ( IVsSccProject2 pscp2Project, string pszSccProjectName, string pszSccAuxPath, string pszSccLocalPath, string pszProvider ) : int
SetActive ( ) : int
SetInactive ( ) : int
UnregisterSccProject ( IVsSccProject2 pscp2Project ) : int

Private Methods

Method Description
EnumHierarchyItems ( IVsHierarchy hierarchy, uint itemid, int recursionLevel, bool hierIsSolution, bool visibleNodesOnly, Action processNodeFunc ) : void

Enumerates over the hierarchy items for the given hierarchy traversing into nested hierarchies.

GetAllItems ( bool>.Func where ) : List

Enumerate all hierarchy project items recursively traversing nested hierarchies.

GetItemId ( object pvar ) : uint

Gets the item id.

GetNodeFiles ( IVsSccProject2 pscp2, uint itemid ) : IList

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

UpdateNode ( VSITEMSELECTION vsItemSel ) : void

Method Details

AnyItemsUnderSourceControl() public method

public AnyItemsUnderSourceControl ( int &pfResult ) : int
pfResult int
return int

BrowseForProject() public method

public BrowseForProject ( string &pbstrDirectory, int &pfOK ) : int
pbstrDirectory string
pfOK int
return int

CancelAfterBrowseForProject() public method

public CancelAfterBrowseForProject ( ) : int
return int

GetCustomGlyphList() public method

public GetCustomGlyphList ( uint baseIndex, uint &pdwImageListHandle ) : int
baseIndex uint
pdwImageListHandle uint
return int

GetGlyphFromPath() public method

public GetGlyphFromPath ( string path ) : GitGlyph
path string
return GitGlyph

GetSccGlyph() public method

public GetSccGlyph ( int cFiles, string rgpszFullPaths, VsStateIcon rgsiGlyphs, uint rgdwSccStatus ) : int
cFiles int
rgpszFullPaths string
rgsiGlyphs VsStateIcon
rgdwSccStatus uint
return int

GetSccGlyphFromStatus() public method

public GetSccGlyphFromStatus ( uint dwSccStatus, VsStateIcon psiGlyph ) : int
dwSccStatus uint
psiGlyph VsStateIcon
return int

GetSolutionFileName() public method

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

GitSccProvider() public method

public GitSccProvider ( GitMenuPackage package ) : System
package GitMenuPackage
return System

IsInstalled() public method

public IsInstalled ( int &pbInstalled ) : int
pbInstalled int
return int

QuerySaveFile2() public method

public QuerySaveFile2 ( string pszMkDocument, uint rgf, VSQEQS_FILE_ATTRIBUTE_DATA pFileInfo, uint &pdwQSResult, uint &prgfMoreInfo ) : int
pszMkDocument string
rgf uint
pFileInfo VSQEQS_FILE_ATTRIBUTE_DATA
pdwQSResult uint
prgfMoreInfo uint
return int

QuerySaveFiles2() public method

public QuerySaveFiles2 ( uint rgfQuerySave, int cFiles, string rgpszMkDocuments, uint rgrgf, VSQEQS_FILE_ATTRIBUTE_DATA rgFileInfo, uint &pdwQSResult, uint &prgfMoreInfo ) : int
rgfQuerySave uint
cFiles int
rgpszMkDocuments string
rgrgf uint
rgFileInfo VSQEQS_FILE_ATTRIBUTE_DATA
pdwQSResult uint
prgfMoreInfo uint
return int

RefreshAllGlyphs() public method

public RefreshAllGlyphs ( ) : void
return void

RefreshGlyphs() public method

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

RefreshGlyphs() public method

public RefreshGlyphs ( List names ) : void
names List
return void

RegisterSccProject() public method

public RegisterSccProject ( IVsSccProject2 pscp2Project, string pszSccProjectName, string pszSccAuxPath, string pszSccLocalPath, string pszProvider ) : int
pscp2Project IVsSccProject2
pszSccProjectName string
pszSccAuxPath string
pszSccLocalPath string
pszProvider string
return int

SetActive() public method

public SetActive ( ) : int
return int

SetInactive() public method

public SetInactive ( ) : int
return int

UnregisterSccProject() public method

public UnregisterSccProject ( IVsSccProject2 pscp2Project ) : int
pscp2Project IVsSccProject2
return int