C# Class FSharp.ProjectExtender.ProjectManager

Inheritance: Microsoft.VisualStudio.Shell.Flavor.FlavoredProjectBase, IProjectManager, IOleCommandTarget, IVsTrackProjectDocumentsEvents2
Mostra file Open project: Hill30/F--Project-Extender Class Usage Examples

Private Properties

Property Type Description
GetNodeChild uint
GetNodeSibling uint
IOleCommandTarget int
IOleCommandTarget int
InvalidateParentItems void
InvalidateParentItems void

Public Methods

Method Description
FixupProject ( ) : void
FlipShowAll ( ) : void

In response to click on the Show All Files button changes the state of the button

OnAfterAddDirectoriesEx ( int cProjects, int cDirectories, IVsProject rgpProjects, int rgFirstIndices, string rgpszMkDocuments, VSADDDIRECTORYFLAGS rgFlags ) : int
OnAfterAddFilesEx ( int cProjects, int cFiles, IVsProject rgpProjects, int rgFirstIndices, string rgpszMkDocuments, VSADDFILEFLAGS rgFlags ) : int
OnAfterRemoveDirectories ( int cProjects, int cDirectories, IVsProject rgpProjects, int rgFirstIndices, string rgpszMkDocuments, VSREMOVEDIRECTORYFLAGS rgFlags ) : int
OnAfterRemoveFiles ( int cProjects, int cFiles, IVsProject rgpProjects, int rgFirstIndices, string rgpszMkDocuments, VSREMOVEFILEFLAGS rgFlags ) : int
OnAfterRenameDirectories ( int cProjects, int cDirs, IVsProject rgpProjects, int rgFirstIndices, string rgszMkOldNames, string rgszMkNewNames, VSRENAMEDIRECTORYFLAGS rgFlags ) : int
OnAfterRenameFiles ( int cProjects, int cFiles, IVsProject rgpProjects, int rgFirstIndices, string rgszMkOldNames, string rgszMkNewNames, VSRENAMEFILEFLAGS rgFlags ) : int
OnAfterSccStatusChanged ( int cProjects, int cFiles, IVsProject rgpProjects, int rgFirstIndices, string rgpszMkDocuments, uint rgdwSccStatus ) : int
OnQueryAddDirectories ( IVsProject pProject, int cDirectories, string rgpszMkDocuments, VSQUERYADDDIRECTORYFLAGS rgFlags, VSQUERYADDDIRECTORYRESULTS pSummaryResult, VSQUERYADDDIRECTORYRESULTS rgResults ) : int
OnQueryAddFiles ( IVsProject pProject, int cFiles, string rgpszMkDocuments, VSQUERYADDFILEFLAGS rgFlags, VSQUERYADDFILERESULTS pSummaryResult, VSQUERYADDFILERESULTS rgResults ) : int
OnQueryRemoveDirectories ( IVsProject pProject, int cDirectories, string rgpszMkDocuments, VSQUERYREMOVEDIRECTORYFLAGS rgFlags, VSQUERYREMOVEDIRECTORYRESULTS pSummaryResult, VSQUERYREMOVEDIRECTORYRESULTS rgResults ) : int
OnQueryRemoveFiles ( IVsProject pProject, int cFiles, string rgpszMkDocuments, VSQUERYREMOVEFILEFLAGS rgFlags, VSQUERYREMOVEFILERESULTS pSummaryResult, VSQUERYREMOVEFILERESULTS rgResults ) : int
OnQueryRenameDirectories ( IVsProject pProject, int cDirs, string rgszMkOldNames, string rgszMkNewNames, VSQUERYRENAMEDIRECTORYFLAGS rgFlags, VSQUERYRENAMEDIRECTORYRESULTS pSummaryResult, VSQUERYRENAMEDIRECTORYRESULTS rgResults ) : int
OnQueryRenameFiles ( IVsProject pProject, int cFiles, string rgszMkOldNames, string rgszMkNewNames, VSQUERYRENAMEFILEFLAGS rgFlags, VSQUERYRENAMEFILERESULTS pSummaryResult, VSQUERYRENAMEFILERESULTS rgResults ) : int
ProjectManager ( ) : System
Refresh ( ) : void

Refershes the solution explorer to reflect the up-to-date excluded files

RefreshSolutionExplorer ( IEnumerable nodes ) : void

Refreshes the solution explorer tree

Refreshing the tree cancels the selection the nodes list is used to restore the selection. The items on the list could have been changed/ recreated as a side effect of the operation, so the list of the nodes is re-mapped

SetSite ( Microsoft site ) : int

Sets the service provider from which to access the services.

ToCanonical ( string include ) : string

Protected Methods

Method Description
Close ( ) : void
ExecCommand ( uint itemId, System.Guid &pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut ) : int

Modify the command execution process for the commands routed to the IVsUIHierarchy

GetProperty ( uint itemId, int propId, object &property ) : int

Modify how properties are calculated

OnAggregationComplete ( ) : void

Completes the project manager initialization process

SetInnerProject ( IntPtr innerIUnknown ) : void

Private Methods

Method Description
GetNodeChild ( uint itemId ) : uint

Returns the first child for the node as provided by base F# project manager

GetNodeSibling ( uint itemId ) : uint

Returns the next sibling for the node as provided by base F# project manager

IOleCommandTarget ( System.Guid &pguidCmdGroup, uint cCmds, OLECMD prgCmds, IntPtr pCmdText ) : int
IOleCommandTarget ( System.Guid &pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut ) : int
InvalidateParentItems ( IEnumerable itemIds ) : void
InvalidateParentItems ( string oldFileNames, string newFileNames ) : void

Method Details

Close() protected method

protected Close ( ) : void
return void

ExecCommand() protected method

Modify the command execution process for the commands routed to the IVsUIHierarchy
protected ExecCommand ( uint itemId, System.Guid &pguidCmdGroup, uint nCmdID, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut ) : int
itemId uint
pguidCmdGroup System.Guid
nCmdID uint
nCmdexecopt uint
pvaIn System.IntPtr
pvaOut System.IntPtr
return int

FixupProject() public method

public FixupProject ( ) : void
return void

FlipShowAll() public method

In response to click on the Show All Files button changes the state of the button
public FlipShowAll ( ) : void
return void

GetProperty() protected method

Modify how properties are calculated
protected GetProperty ( uint itemId, int propId, object &property ) : int
itemId uint
propId int
property object
return int

OnAfterAddDirectoriesEx() public method

public OnAfterAddDirectoriesEx ( int cProjects, int cDirectories, IVsProject rgpProjects, int rgFirstIndices, string rgpszMkDocuments, VSADDDIRECTORYFLAGS rgFlags ) : int
cProjects int
cDirectories int
rgpProjects IVsProject
rgFirstIndices int
rgpszMkDocuments string
rgFlags VSADDDIRECTORYFLAGS
return int

OnAfterAddFilesEx() public method

public OnAfterAddFilesEx ( int cProjects, int cFiles, IVsProject rgpProjects, int rgFirstIndices, string rgpszMkDocuments, VSADDFILEFLAGS rgFlags ) : int
cProjects int
cFiles int
rgpProjects IVsProject
rgFirstIndices int
rgpszMkDocuments string
rgFlags VSADDFILEFLAGS
return int

OnAfterRemoveDirectories() public method

public OnAfterRemoveDirectories ( int cProjects, int cDirectories, IVsProject rgpProjects, int rgFirstIndices, string rgpszMkDocuments, VSREMOVEDIRECTORYFLAGS rgFlags ) : int
cProjects int
cDirectories int
rgpProjects IVsProject
rgFirstIndices int
rgpszMkDocuments string
rgFlags VSREMOVEDIRECTORYFLAGS
return int

OnAfterRemoveFiles() public method

public OnAfterRemoveFiles ( int cProjects, int cFiles, IVsProject rgpProjects, int rgFirstIndices, string rgpszMkDocuments, VSREMOVEFILEFLAGS rgFlags ) : int
cProjects int
cFiles int
rgpProjects IVsProject
rgFirstIndices int
rgpszMkDocuments string
rgFlags VSREMOVEFILEFLAGS
return int

OnAfterRenameDirectories() public method

public OnAfterRenameDirectories ( int cProjects, int cDirs, IVsProject rgpProjects, int rgFirstIndices, string rgszMkOldNames, string rgszMkNewNames, VSRENAMEDIRECTORYFLAGS rgFlags ) : int
cProjects int
cDirs int
rgpProjects IVsProject
rgFirstIndices int
rgszMkOldNames string
rgszMkNewNames string
rgFlags VSRENAMEDIRECTORYFLAGS
return int

OnAfterRenameFiles() public method

public OnAfterRenameFiles ( int cProjects, int cFiles, IVsProject rgpProjects, int rgFirstIndices, string rgszMkOldNames, string rgszMkNewNames, VSRENAMEFILEFLAGS rgFlags ) : int
cProjects int
cFiles int
rgpProjects IVsProject
rgFirstIndices int
rgszMkOldNames string
rgszMkNewNames string
rgFlags VSRENAMEFILEFLAGS
return int

OnAfterSccStatusChanged() public method

public OnAfterSccStatusChanged ( int cProjects, int cFiles, IVsProject rgpProjects, int rgFirstIndices, string rgpszMkDocuments, uint rgdwSccStatus ) : int
cProjects int
cFiles int
rgpProjects IVsProject
rgFirstIndices int
rgpszMkDocuments string
rgdwSccStatus uint
return int

OnAggregationComplete() protected method

Completes the project manager initialization process
protected OnAggregationComplete ( ) : void
return void

OnQueryAddDirectories() public method

public OnQueryAddDirectories ( IVsProject pProject, int cDirectories, string rgpszMkDocuments, VSQUERYADDDIRECTORYFLAGS rgFlags, VSQUERYADDDIRECTORYRESULTS pSummaryResult, VSQUERYADDDIRECTORYRESULTS rgResults ) : int
pProject IVsProject
cDirectories int
rgpszMkDocuments string
rgFlags VSQUERYADDDIRECTORYFLAGS
pSummaryResult VSQUERYADDDIRECTORYRESULTS
rgResults VSQUERYADDDIRECTORYRESULTS
return int

OnQueryAddFiles() public method

public OnQueryAddFiles ( IVsProject pProject, int cFiles, string rgpszMkDocuments, VSQUERYADDFILEFLAGS rgFlags, VSQUERYADDFILERESULTS pSummaryResult, VSQUERYADDFILERESULTS rgResults ) : int
pProject IVsProject
cFiles int
rgpszMkDocuments string
rgFlags VSQUERYADDFILEFLAGS
pSummaryResult VSQUERYADDFILERESULTS
rgResults VSQUERYADDFILERESULTS
return int

OnQueryRemoveDirectories() public method

public OnQueryRemoveDirectories ( IVsProject pProject, int cDirectories, string rgpszMkDocuments, VSQUERYREMOVEDIRECTORYFLAGS rgFlags, VSQUERYREMOVEDIRECTORYRESULTS pSummaryResult, VSQUERYREMOVEDIRECTORYRESULTS rgResults ) : int
pProject IVsProject
cDirectories int
rgpszMkDocuments string
rgFlags VSQUERYREMOVEDIRECTORYFLAGS
pSummaryResult VSQUERYREMOVEDIRECTORYRESULTS
rgResults VSQUERYREMOVEDIRECTORYRESULTS
return int

OnQueryRemoveFiles() public method

public OnQueryRemoveFiles ( IVsProject pProject, int cFiles, string rgpszMkDocuments, VSQUERYREMOVEFILEFLAGS rgFlags, VSQUERYREMOVEFILERESULTS pSummaryResult, VSQUERYREMOVEFILERESULTS rgResults ) : int
pProject IVsProject
cFiles int
rgpszMkDocuments string
rgFlags VSQUERYREMOVEFILEFLAGS
pSummaryResult VSQUERYREMOVEFILERESULTS
rgResults VSQUERYREMOVEFILERESULTS
return int

OnQueryRenameDirectories() public method

public OnQueryRenameDirectories ( IVsProject pProject, int cDirs, string rgszMkOldNames, string rgszMkNewNames, VSQUERYRENAMEDIRECTORYFLAGS rgFlags, VSQUERYRENAMEDIRECTORYRESULTS pSummaryResult, VSQUERYRENAMEDIRECTORYRESULTS rgResults ) : int
pProject IVsProject
cDirs int
rgszMkOldNames string
rgszMkNewNames string
rgFlags VSQUERYRENAMEDIRECTORYFLAGS
pSummaryResult VSQUERYRENAMEDIRECTORYRESULTS
rgResults VSQUERYRENAMEDIRECTORYRESULTS
return int

OnQueryRenameFiles() public method

public OnQueryRenameFiles ( IVsProject pProject, int cFiles, string rgszMkOldNames, string rgszMkNewNames, VSQUERYRENAMEFILEFLAGS rgFlags, VSQUERYRENAMEFILERESULTS pSummaryResult, VSQUERYRENAMEFILERESULTS rgResults ) : int
pProject IVsProject
cFiles int
rgszMkOldNames string
rgszMkNewNames string
rgFlags VSQUERYRENAMEFILEFLAGS
pSummaryResult VSQUERYRENAMEFILERESULTS
rgResults VSQUERYRENAMEFILERESULTS
return int

ProjectManager() public method

public ProjectManager ( ) : System
return System

Refresh() public method

Refershes the solution explorer to reflect the up-to-date excluded files
public Refresh ( ) : void
return void

RefreshSolutionExplorer() public method

Refreshes the solution explorer tree
Refreshing the tree cancels the selection the nodes list is used to restore the selection. The items on the list could have been changed/ recreated as a side effect of the operation, so the list of the nodes is re-mapped
public RefreshSolutionExplorer ( IEnumerable nodes ) : void
nodes IEnumerable A list of nodes which were originally selected
return void

SetInnerProject() protected method

protected SetInnerProject ( IntPtr innerIUnknown ) : void
innerIUnknown System.IntPtr
return void

SetSite() public method

Sets the service provider from which to access the services.
public SetSite ( Microsoft site ) : int
site Microsoft An instance to an Microsoft.VisualStudio.OLE.Interop object
return int

ToCanonical() public method

public ToCanonical ( string include ) : string
include string
return string