C# Class XSharp.Project.XSharpProjectNode

Inheritance: Microsoft.VisualStudio.Project.ProjectNode
Show file Open project: X-Sharp/XSharpPublic Class Usage Examples

Private Properties

Property Type Description
CreateServices object
InitializeCATIDs void
InitializeImageList void
XSharpProjectNode System

Public Methods

Method Description
AddFileFromTemplate ( string source, string target ) : void

Adds the file from template.

CreateDependentFileNode ( ProjectElement item ) : XSharpDependentFileNode

Create dependent file node based on an msbuild item

CreateFileNode ( ProjectElement item ) : FileNode

Creates the file node.

GetAutomationObject ( ) : object

Returns an automation object representing this node

GetFile ( int fileId, uint flags, uint &itemid, string &fileName ) : int

Allows you to query the project for special files and optionally create them.

IsCodeFile ( string strFileName ) : bool

Evaluates if a file is an XSharp code file based on is extension

IsVoBinary ( string fileName ) : bool
Load ( string filename, string location, string name, uint flags, System.Guid &iidProject, int &canceled ) : void
XSharpProjectNode ( XSharpProjectPackage package ) : System

Initializes a new instance of the XSharpProjectNode class.

Protected Methods

Method Description
AddFileToMsBuild ( string file ) : ProjectElement
AddNewFileNodeToHierarchy ( HierarchyNode parentNode, string fileName ) : void
CreatePropertiesObject ( ) : NodeProperties
GetConfigurationDependentPropertyPages ( ) : System.Guid[]

Return list of guids of property pages that are dependent of the configuration

GetConfigurationIndependentPropertyPages ( ) : System.Guid[]

Return list of guids of property pages that are independent of the configuration

GetPriorityProjectDesignerPages ( ) : System.Guid[]

Return list of guids of all property pages

IsItemTypeFileType ( string type ) : bool

Called by the project to know if the item is a file (that is part of the project) or an intermediate file used by the MSBuild tasks/targets Override this method if your project has more types or different ones

Private Methods

Method Description
CreateServices ( Type serviceType ) : object
InitializeCATIDs ( ) : void

Provide mapping from our browse objects and automation objects to our CATIDs CATID (Category ID) objects are used to extend the properties that appear in the Properties window for projects and project items.

InitializeImageList ( ) : void
XSharpProjectNode ( ) : System

Initializes the XSharpProjectNode class.

Method Details

AddFileFromTemplate() public method

Adds the file from template.
public AddFileFromTemplate ( string source, string target ) : void
source string The source template.
target string The target file.
return void

AddFileToMsBuild() protected method

protected AddFileToMsBuild ( string file ) : ProjectElement
file string
return Microsoft.VisualStudio.Project.ProjectElement

AddNewFileNodeToHierarchy() protected method

protected AddNewFileNodeToHierarchy ( HierarchyNode parentNode, string fileName ) : void
parentNode HierarchyNode
fileName string
return void

CreateDependentFileNode() public method

Create dependent file node based on an msbuild item
public CreateDependentFileNode ( ProjectElement item ) : XSharpDependentFileNode
item Microsoft.VisualStudio.Project.ProjectElement msbuild item
return XSharpDependentFileNode

CreateFileNode() public method

Creates the file node.
public CreateFileNode ( ProjectElement item ) : FileNode
item Microsoft.VisualStudio.Project.ProjectElement The project element item.
return Microsoft.VisualStudio.Project.FileNode

CreatePropertiesObject() protected method

protected CreatePropertiesObject ( ) : NodeProperties
return Microsoft.VisualStudio.Project.NodeProperties

GetAutomationObject() public method

Returns an automation object representing this node
public GetAutomationObject ( ) : object
return object

GetConfigurationDependentPropertyPages() protected method

Return list of guids of property pages that are dependent of the configuration
protected GetConfigurationDependentPropertyPages ( ) : System.Guid[]
return System.Guid[]

GetConfigurationIndependentPropertyPages() protected method

Return list of guids of property pages that are independent of the configuration
protected GetConfigurationIndependentPropertyPages ( ) : System.Guid[]
return System.Guid[]

GetFile() public method

Allows you to query the project for special files and optionally create them.
public GetFile ( int fileId, uint flags, uint &itemid, string &fileName ) : int
fileId int __PSFFILEID of the file
flags uint __PSFFLAGS flags for the file
itemid uint The itemid of the node in the hierarchy
fileName string The file name of the special file.
return int

GetPriorityProjectDesignerPages() protected method

Return list of guids of all property pages
protected GetPriorityProjectDesignerPages ( ) : System.Guid[]
return System.Guid[]

IsCodeFile() public method

Evaluates if a file is an XSharp code file based on is extension
public IsCodeFile ( string strFileName ) : bool
strFileName string The filename to be evaluated
return bool

IsItemTypeFileType() protected method

Called by the project to know if the item is a file (that is part of the project) or an intermediate file used by the MSBuild tasks/targets Override this method if your project has more types or different ones
protected IsItemTypeFileType ( string type ) : bool
type string Type name
return bool

IsVoBinary() public method

public IsVoBinary ( string fileName ) : bool
fileName string
return bool

Load() public method

public Load ( string filename, string location, string name, uint flags, System.Guid &iidProject, int &canceled ) : void
filename string
location string
name string
flags uint
iidProject System.Guid
canceled int
return void

XSharpProjectNode() public method

Initializes a new instance of the XSharpProjectNode class.
public XSharpProjectNode ( XSharpProjectPackage package ) : System
package XSharpProjectPackage Value of the project package for initialize internal package field.
return System