C# Class VsTeXProject.VisualStudio.Project.FolderNode

Inheritance: HierarchyNode
Exibir arquivo Open project: mimura1133/vstex Class Usage Examples

Public Methods

Method Description
DeleteFolder ( string path ) : void

Override if your node is not a file system folder so that it does nothing or it deletes it from your storage location.

FolderNode ( ProjectNode root, string relativePath, ProjectElement element ) : System

Constructor for the FolderNode

GetAutomationObject ( ) : object

Get the automation object for the FolderNode

GetIconHandle ( bool open ) : object
GetMkDocument ( ) : string
RenameDirectory ( string newPath ) : void

Rename the physical directory for a folder node Override if your node does not use file system folder

SetEditLabel ( string label ) : int

Rename Folder

Protected Methods

Method Description
CanDeleteItem ( __VSDELETEITEMOPERATION deleteOperation ) : bool
CreatePropertiesObject ( ) : NodeProperties
DeleteFromStorage ( string path ) : void
GetSccFiles ( IList files, IList flags ) : void

Enumerate the files associated with this node. A folder node is not a file and as such no file to enumerate.

QueryStatusOnNode ( System.Guid cmdGroup, uint cmd, IntPtr pCmdText, QueryStatusResult &result ) : int
UpdateSccStateIcons ( ) : void

Recursevily walks the folder nodes and redraws the state icons

Private Methods

Method Description
CreateDirectory ( ) : void
CreateDirectory ( string newName ) : void
GetSccSpecialFiles ( string sccFile, IList files, IList flags ) : void
RenameFolder ( string newName ) : void
ShowFileOrFolderAlreadExistsErrorMessage ( string newPath ) : int

Show error message if not in automation mode, otherwise throw exception

Method Details

CanDeleteItem() protected method

protected CanDeleteItem ( __VSDELETEITEMOPERATION deleteOperation ) : bool
deleteOperation __VSDELETEITEMOPERATION
return bool

CreatePropertiesObject() protected method

protected CreatePropertiesObject ( ) : NodeProperties
return NodeProperties

DeleteFolder() public method

Override if your node is not a file system folder so that it does nothing or it deletes it from your storage location.
public DeleteFolder ( string path ) : void
path string Path to the folder to delete
return void

DeleteFromStorage() protected method

protected DeleteFromStorage ( string path ) : void
path string
return void

FolderNode() public method

Constructor for the FolderNode
public FolderNode ( ProjectNode root, string relativePath, ProjectElement element ) : System
root ProjectNode Root node of the hierarchy
relativePath string relative path from root i.e.: "NewFolder1\\NewFolder2\\NewFolder3
element ProjectElement Associated project element
return System

GetAutomationObject() public method

Get the automation object for the FolderNode
public GetAutomationObject ( ) : object
return object

GetIconHandle() public method

public GetIconHandle ( bool open ) : object
open bool
return object

GetMkDocument() public method

public GetMkDocument ( ) : string
return string

GetSccFiles() protected method

Enumerate the files associated with this node. A folder node is not a file and as such no file to enumerate.
protected GetSccFiles ( IList files, IList flags ) : void
files IList The list of files to be placed under source control.
flags IList The flags that are associated to the files.
return void

QueryStatusOnNode() protected method

protected QueryStatusOnNode ( System.Guid cmdGroup, uint cmd, IntPtr pCmdText, QueryStatusResult &result ) : int
cmdGroup System.Guid
cmd uint
pCmdText System.IntPtr
result QueryStatusResult
return int

RenameDirectory() public method

Rename the physical directory for a folder node Override if your node does not use file system folder
public RenameDirectory ( string newPath ) : void
newPath string
return void

SetEditLabel() public method

Rename Folder
public SetEditLabel ( string label ) : int
label string new Name of Folder
return int

UpdateSccStateIcons() protected method

Recursevily walks the folder nodes and redraws the state icons
protected UpdateSccStateIcons ( ) : void
return void