Property | Type | Description | |
---|---|---|---|
FileNode | System | ||
GetChildNodes | List |
||
GetSccSpecialFiles | void | ||
OnCustomToolChanged | void | ||
RenameCaseOnlyChange | void | ||
RenameDocument | bool | ||
RenameFileNode | |||
RunGenerator | void | ||
SetNewParentOnChildNodes | void |
Method | Description | |
---|---|---|
FileNode ( |
Constructor for the FileNode
|
|
GetAutomationObject ( ) : object |
Get an instance of the automation object for a FileNode
|
|
GetIconHandle ( bool open ) : object | ||
GetMkDocument ( ) : string | ||
SetEditLabel ( string label ) : int |
Renames a file node.
|
Method | Description | |
---|---|---|
AfterSaveItemAs ( |
Performs a SaveAs operation of an open document. Called from SaveItem after the running document table has been updated with the new doc data.
|
|
CanDeleteItem ( __VSDELETEITEMOPERATION deleteOperation ) : bool | ||
CanShowDefaultIcon ( ) : bool |
Determines if this is node a valid node for painting the default file icon.
|
|
CreatePropertiesObject ( ) : |
||
CreateSingleFileGenerator ( ) : ISingleFileGenerator |
factory method for creating single file generators.
|
|
DeleteFromStorage ( string path ) : void |
Delete the item corresponding to the specified path from storage.
|
|
DoDefaultAction ( ) : void | ||
ExecCommandOnNode ( System.Guid cmdGroup, uint cmd, uint nCmdexecopt, |
||
GetDocumentManager ( ) : |
Returns a specific Document manager to handle files
|
|
GetDragTargetHandlerNode ( ) : HierarchyNode |
Called by the drag&drop implementation to ask the node which is being dragged/droped over which nodes should process the operation. This allows for dragging to a node that cannot contain items to let its parent accept the drop, while a reference node delegate to the project and a folder/project node to itself.
|
|
IsFileOnDisk ( bool showMessage ) : bool |
Determine if this item is represented physical on disk and shows a messagebox in case that the file is not present and a UI is to be presented.
|
|
IsFileOnDisk ( string path ) : bool |
Determine if the file represented by "path" exist in storage. Override this method if your files are not persisted on disk.
|
|
QueryStatusOnNode ( System.Guid cmdGroup, uint cmd, |
||
RecoverFromRenameFailure ( string fileThatFailed, string originalFileName ) : void |
Tries recovering from a rename failure.
|
|
RenameChildNodes ( |
Rename all childnodes
|
|
RenameFileNode ( string oldFileName, string newFileName, uint newParentId ) : |
Renames the file in the hierarchy by removing old node and adding a new node in the hierarchy. While a new node will be used to represent the item, the underlying MSBuild item will be the same and as a result file properties saved in the project file will not be lost. |
|
RenameInStorage ( string oldName, string newName ) : void |
This should be overriden for node that are not saved on disk
|
|
SetEditLabel ( string label, string relativePath ) : int |
Rename the underlying document based on the change the user just made to the edit label.
|
Method | Description | |
---|---|---|
FileNode ( ) : System | ||
GetChildNodes ( ) : List |
||
GetSccSpecialFiles ( string sccFile, IList |
||
OnCustomToolChanged ( object sender, |
Event handler for the Custom tool property changes
|
|
RenameCaseOnlyChange ( string newFileName ) : void |
Renames the file node for a case only change.
|
|
RenameDocument ( string oldName, string newName ) : bool |
Get's called to rename the eventually running document this hierarchyitem points to
|
|
RenameFileNode ( string oldFileName, string newFileName ) : |
||
RunGenerator ( ) : void |
Runs a generator.
|
|
SetNewParentOnChildNodes ( |
Update the ChildNodes after the parent node has been renamed
|
protected AfterSaveItemAs ( |
||
docData | A pointer to the document in the rdt | |
newFilePath | string | The new file path to the document |
return | int |
protected CanDeleteItem ( __VSDELETEITEMOPERATION deleteOperation ) : bool | ||
deleteOperation | __VSDELETEITEMOPERATION | |
return | bool |
protected CreatePropertiesObject ( ) : |
||
return |
protected CreateSingleFileGenerator ( ) : ISingleFileGenerator | ||
return | ISingleFileGenerator |
protected DeleteFromStorage ( string path ) : void | ||
path | string | |
return | void |
protected ExecCommandOnNode ( System.Guid cmdGroup, uint cmd, uint nCmdexecopt, |
||
cmdGroup | System.Guid | |
cmd | uint | |
nCmdexecopt | uint | |
pvaIn | ||
pvaOut | ||
return | int |
public FileNode ( |
||
root | Root of the hierarchy | |
element | ||
return | System |
protected GetDocumentManager ( ) : |
||
return |
protected GetDragTargetHandlerNode ( ) : HierarchyNode | ||
return | HierarchyNode |
protected IsFileOnDisk ( bool showMessage ) : bool | ||
showMessage | bool | true if user should be presented for UI in case the file is not present |
return | bool |
protected IsFileOnDisk ( string path ) : bool | ||
path | string | Url representing the file |
return | bool |
protected QueryStatusOnNode ( System.Guid cmdGroup, uint cmd, |
||
cmdGroup | System.Guid | |
cmd | uint | |
pCmdText | ||
result | QueryStatusResult | |
return | int |
protected RecoverFromRenameFailure ( string fileThatFailed, string originalFileName ) : void | ||
fileThatFailed | string | The file that failed to be renamed. |
originalFileName | string | The original filenamee |
return | void |
protected RenameChildNodes ( |
||
parentNode | ||
return | void |
protected RenameFileNode ( string oldFileName, string newFileName, uint newParentId ) : |
||
oldFileName | string | The old file name. |
newFileName | string | The new file name |
newParentId | uint | The new parent id of the item. |
return |
protected RenameInStorage ( string oldName, string newName ) : void | ||
oldName | string | Previous name in storage |
newName | string | New name in storage |
return | void |
public SetEditLabel ( string label ) : int | ||
label | string | The new name. |
return | int |
protected SetEditLabel ( string label, string relativePath ) : int | ||
label | string | |
relativePath | string | |
return | int |