C# Class Nemerle.VisualStudio.Project.NemerleProjectNode

Inheritance: Microsoft.VisualStudio.Project.ProjectNode, IVsProjectSpecificEditorMap2
Afficher le fichier Open project: rsdn/nemerle Class Usage Examples

Private Properties

Свойство Type Description
AddFileNodeToNode HierarchyNode
AddIndependentFileNode HierarchyNode
AddManyItemsHelper int
CreateFolderNode Microsoft.VisualStudio.Project.FolderNode
CreateFolderNodeHelper HierarchyNode
CreateFolderNodeHelper HierarchyNode
CreateMsBuildFileProjectElement Microsoft.VisualStudio.Project.ProjectElement
CreateMsBuildFolderProjectElement Microsoft.VisualStudio.Project.ProjectElement
CreateServices object
DeleteTempCmdFile void
FindChildEx HierarchyNode
FindProject EnvDTE.Project
GetItemParentNode HierarchyNode
GetNamespace string
GetProject EnvDTE.Project
IVsProjectSpecificEditorMap2 int
InitializeCATIDs void
IsLinkNode bool
LoadProjectImageList System.Windows.Forms.ImageList
StartNoDebug bool
ToggleShowAllFiles int
TryFindParentFileNode bool

Méthodes publiques

Méthode Description
AddComponent ( VSADDCOMPOPERATION dwAddCompOperation, uint cComponents, System rgpcsdComponents, System hwndDialog, VSADDCOMPRESULT pResult ) : int

Add Components to the Project. Used by the environment to add components specified by the user in the Component Selector dialog to the specified project

AddFileFromTemplate ( string source, string target ) : void

Overriding to provide customization of files on add files. This will replace tokens in the file with actual value (namespace, class name,...)

AddItem ( uint itemIdLoc, VSADDITEMOPERATION op, string itemName, uint filesToOpen, string files, IntPtr dlgOwner, VSADDRESULT result ) : int
AddProjectReference ( ) : int

This overrides the base class method to show the VS 2005 style Add reference dialog. The ProjectNode implementation shows the VS 2003 style Add Reference dialog.

Close ( ) : int
CreateDependentFileNode ( ProjectElement item ) : FileNode

Create dependent file node based on an msbuild item

CreateFileNode ( ProjectElement item ) : FileNode

Create a file node based on an msbuild item.

CreateFolderNodes ( string path ) : HierarchyNode

Walks the subpaths of a project relative path and checks if the folder nodes hierarchy is already there, if not creates it.

GetAutomationObject ( ) : object

Gets the automation object for the project node.

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

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

GetFormatList ( string &formatlist ) : int

Creates the format list for the open file dialog

GetGuidProperty ( int propid, System.Guid &guid ) : int
GetMacroReferenceContainer ( ) : IReferenceContainer
GetOutputExtension ( OutputType outputType ) : string
GetProjectOptions ( string config ) : ProjectOptions
GetProperty ( int propId ) : object
GetServiceProvider ( ) : IServiceProvider
GetSpecificEditorProperty ( string mkDocument, int propid, object &result ) : int
GetSpecificEditorType ( string mkDocument, System.Guid &guidEditorType ) : int
IsCodeFile ( string strFileName ) : bool

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

IsEmbeddedResource ( string strFileName ) : bool
Load ( string filename, string location, string name, uint flags, System.Guid &iidProject, int &canceled ) : void
NemerleProjectNode ( NemerlePackage pkg ) : System
OpenItem ( uint itemId, System.Guid &logicalView, IntPtr punkDocDataExisting, IVsWindowFrame &frame ) : int
PrepareBuild ( string config, bool cleanBuild ) : void
SetSite ( Microsoft site ) : int
SetSpecificEditorProperty ( string mkDocument, int propid, object value ) : int

Méthodes protégées

Méthode Description
AddNewFileNodeToHierarchy ( HierarchyNode parentNode, string fileName ) : void
AddWizardCustomParams ( HierarchyNode parent, string file, string>.Dictionary customParams ) : void
CreateConfigProvider ( ) : ConfigProvider
CreatePropertiesObject ( ) : NodeProperties
CreateReferenceContainerNode ( ) : ReferenceContainerNode
Dispose ( bool disposing ) : void
GetConfigurationDependentPropertyPages ( ) : System.Guid[]

Returns the configuration dependent property pages. Specify here a property page. By returning no property page the configuartion dependent properties will be neglected. Overriding, but current implementation does nothing. To provide configuration specific page project property page, this should return an array bigger then 0 (you can make it do the same as GetConfigurationIndependentPropertyPages() to see its impact)

GetConfigurationIndependentPropertyPages ( ) : System.Guid[]

Overriding to provide project general property page

InternalExecCommand ( System.Guid cmdGroup, uint cmdId, uint cmdExecOpt, IntPtr vaIn, IntPtr vaOut, CommandOrigin commandOrigin ) : int
IsItemTypeFileType ( string type ) : bool
OnHandleConfigurationRelatedGlobalProperties ( object sender, ActiveConfigurationChangedEventArgs eventArgs ) : void
ProcessFiles ( ) : void

Loads file items from the project file into the hierarchy.

ProcessFolders ( ) : void
ProcessReferences ( ) : void
SetOutputLogger ( IVsOutputWindowPane output ) : void
ShowAllFiles ( ) : int

Enables / Disables the ShowAllFileMode.

Private Methods

Méthode Description
AddFileNodeToNode ( Microsoft.Build.Evaluation item, HierarchyNode parentNode ) : HierarchyNode

Add a file node to the hierarchy

AddIndependentFileNode ( Microsoft.Build.Evaluation item ) : HierarchyNode

Add an item to the hierarchy based on the item path

AddManyItemsHelper ( uint itemIdLoc, VSADDITEMOPERATION op, string itemName, uint filesToOpen, string files, IntPtr dlgOwner, VSADDRESULT result ) : int
CreateFolderNode ( string path, ProjectElement element ) : FolderNode
CreateFolderNodeHelper ( string sourcePath, string parentPath ) : HierarchyNode
CreateFolderNodeHelper ( string directory, uint parentID ) : HierarchyNode
CreateMsBuildFileProjectElement ( string file ) : ProjectElement

Creates and returns the ProjectElement for a file item.

CreateMsBuildFolderProjectElement ( string folder ) : ProjectElement

Creates and returns the ProjectElement for a folder item.

CreateServices ( Type serviceType ) : object

Creates the services exposed by this project.

DeleteTempCmdFile ( Process process, string cmdFilePath ) : void
FindChildEx ( HierarchyNode it, string name ) : HierarchyNode
FindProject ( EnvDTE project, string projectFullName ) : EnvDTE.Project
GetItemParentNode ( Microsoft.Build.Evaluation item ) : HierarchyNode

Get the parent node of an msbuild item

GetNamespace ( HierarchyNode node ) : string
GetProject ( EnvDTE dte, string startupProjectFullName ) : EnvDTE.Project
IVsProjectSpecificEditorMap2 ( string mkDocument, System.Guid &guidLanguageService ) : int
InitializeCATIDs ( ) : void

Provide mapping from our browse objects and automation objects to our CATIDs

IsLinkNode ( Microsoft.Build.Evaluation item ) : bool
LoadProjectImageList ( ) : ImageList
StartNoDebug ( EnvDTE dte ) : bool

Run project output without debugging.

ToggleShowAllFiles ( ) : int

Toggles the state of Show all files

TryFindParentFileNode ( HierarchyNode root, string child, HierarchyNode &parent ) : bool

Method Details

AddComponent() public méthode

Add Components to the Project. Used by the environment to add components specified by the user in the Component Selector dialog to the specified project
public AddComponent ( VSADDCOMPOPERATION dwAddCompOperation, uint cComponents, System rgpcsdComponents, System hwndDialog, VSADDCOMPRESULT pResult ) : int
dwAddCompOperation VSADDCOMPOPERATION The component operation to be performed.
cComponents uint Number of components to be added
rgpcsdComponents System array of component selector data
hwndDialog System Handle to the component picker dialog
pResult VSADDCOMPRESULT Result to be returned to the caller
Résultat int

AddFileFromTemplate() public méthode

Overriding to provide customization of files on add files. This will replace tokens in the file with actual value (namespace, class name,...)
public AddFileFromTemplate ( string source, string target ) : void
source string Full path to template file
target string Full path to destination file
Résultat void

AddItem() public méthode

public AddItem ( uint itemIdLoc, VSADDITEMOPERATION op, string itemName, uint filesToOpen, string files, IntPtr dlgOwner, VSADDRESULT result ) : int
itemIdLoc uint
op VSADDITEMOPERATION
itemName string
filesToOpen uint
files string
dlgOwner System.IntPtr
result VSADDRESULT
Résultat int

AddNewFileNodeToHierarchy() protected méthode

protected AddNewFileNodeToHierarchy ( HierarchyNode parentNode, string fileName ) : void
parentNode HierarchyNode
fileName string
Résultat void

AddProjectReference() public méthode

This overrides the base class method to show the VS 2005 style Add reference dialog. The ProjectNode implementation shows the VS 2003 style Add Reference dialog.
public AddProjectReference ( ) : int
Résultat int

AddWizardCustomParams() protected méthode

protected AddWizardCustomParams ( HierarchyNode parent, string file, string>.Dictionary customParams ) : void
parent HierarchyNode
file string
customParams string>.Dictionary
Résultat void

Close() public méthode

public Close ( ) : int
Résultat int

CreateConfigProvider() protected méthode

protected CreateConfigProvider ( ) : ConfigProvider
Résultat Microsoft.VisualStudio.Project.ConfigProvider

CreateDependentFileNode() public méthode

Create dependent file node based on an msbuild item
public CreateDependentFileNode ( ProjectElement item ) : FileNode
item Microsoft.VisualStudio.Project.ProjectElement msbuild item
Résultat Microsoft.VisualStudio.Project.FileNode

CreateFileNode() public méthode

Create a file node based on an msbuild item.
public CreateFileNode ( ProjectElement item ) : FileNode
item Microsoft.VisualStudio.Project.ProjectElement The msbuild item to be analyzed
Résultat Microsoft.VisualStudio.Project.FileNode

CreateFolderNodes() public méthode

Walks the subpaths of a project relative path and checks if the folder nodes hierarchy is already there, if not creates it.
public CreateFolderNodes ( string path ) : HierarchyNode
path string Path of the folder, can be relative to project or absolute
Résultat HierarchyNode

CreatePropertiesObject() protected méthode

protected CreatePropertiesObject ( ) : NodeProperties
Résultat Microsoft.VisualStudio.Project.NodeProperties

CreateReferenceContainerNode() protected méthode

protected CreateReferenceContainerNode ( ) : ReferenceContainerNode
Résultat Microsoft.VisualStudio.Project.ReferenceContainerNode

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetAutomationObject() public méthode

Gets the automation object for the project node.
public GetAutomationObject ( ) : object
Résultat object

GetConfigurationDependentPropertyPages() protected méthode

Returns the configuration dependent property pages. Specify here a property page. By returning no property page the configuartion dependent properties will be neglected. Overriding, but current implementation does nothing. To provide configuration specific page project property page, this should return an array bigger then 0 (you can make it do the same as GetConfigurationIndependentPropertyPages() to see its impact)
protected GetConfigurationDependentPropertyPages ( ) : System.Guid[]
Résultat System.Guid[]

GetConfigurationIndependentPropertyPages() protected méthode

Overriding to provide project general property page
protected GetConfigurationIndependentPropertyPages ( ) : System.Guid[]
Résultat System.Guid[]

GetFile() public méthode

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.
Résultat int

GetFormatList() public méthode

Creates the format list for the open file dialog
public GetFormatList ( string &formatlist ) : int
formatlist string The formatlist to return
Résultat int

GetGuidProperty() public méthode

public GetGuidProperty ( int propid, System.Guid &guid ) : int
propid int
guid System.Guid
Résultat int

GetMacroReferenceContainer() public méthode

public GetMacroReferenceContainer ( ) : IReferenceContainer
Résultat IReferenceContainer

GetOutputExtension() public static méthode

public static GetOutputExtension ( OutputType outputType ) : string
outputType OutputType
Résultat string

GetProjectOptions() public méthode

public GetProjectOptions ( string config ) : ProjectOptions
config string
Résultat Microsoft.VisualStudio.Project.ProjectOptions

GetProperty() public méthode

public GetProperty ( int propId ) : object
propId int
Résultat object

GetServiceProvider() public méthode

public GetServiceProvider ( ) : IServiceProvider
Résultat IServiceProvider

GetSpecificEditorProperty() public méthode

public GetSpecificEditorProperty ( string mkDocument, int propid, object &result ) : int
mkDocument string
propid int
result object
Résultat int

GetSpecificEditorType() public méthode

public GetSpecificEditorType ( string mkDocument, System.Guid &guidEditorType ) : int
mkDocument string
guidEditorType System.Guid
Résultat int

InternalExecCommand() protected méthode

protected InternalExecCommand ( System.Guid cmdGroup, uint cmdId, uint cmdExecOpt, IntPtr vaIn, IntPtr vaOut, CommandOrigin commandOrigin ) : int
cmdGroup System.Guid
cmdId uint
cmdExecOpt uint
vaIn System.IntPtr
vaOut System.IntPtr
commandOrigin CommandOrigin
Résultat int

IsCodeFile() public méthode

Evaluates if a file is an Nemerle code file based on is extension
public IsCodeFile ( string strFileName ) : bool
strFileName string The filename to be evaluated
Résultat bool

IsEmbeddedResource() public méthode

public IsEmbeddedResource ( string strFileName ) : bool
strFileName string
Résultat bool

IsItemTypeFileType() protected méthode

protected IsItemTypeFileType ( string type ) : bool
type string
Résultat bool

Load() public méthode

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
Résultat void

NemerleProjectNode() public méthode

public NemerleProjectNode ( NemerlePackage pkg ) : System
pkg NemerlePackage
Résultat System

OnHandleConfigurationRelatedGlobalProperties() protected méthode

protected OnHandleConfigurationRelatedGlobalProperties ( object sender, ActiveConfigurationChangedEventArgs eventArgs ) : void
sender object
eventArgs Microsoft.VisualStudio.Project.ActiveConfigurationChangedEventArgs
Résultat void

OpenItem() public méthode

public OpenItem ( uint itemId, System.Guid &logicalView, IntPtr punkDocDataExisting, IVsWindowFrame &frame ) : int
itemId uint
logicalView System.Guid
punkDocDataExisting System.IntPtr
frame IVsWindowFrame
Résultat int

PrepareBuild() public méthode

public PrepareBuild ( string config, bool cleanBuild ) : void
config string
cleanBuild bool
Résultat void

ProcessFiles() protected méthode

Loads file items from the project file into the hierarchy.
protected ProcessFiles ( ) : void
Résultat void

ProcessFolders() protected méthode

protected ProcessFolders ( ) : void
Résultat void

ProcessReferences() protected méthode

protected ProcessReferences ( ) : void
Résultat void

SetOutputLogger() protected méthode

protected SetOutputLogger ( IVsOutputWindowPane output ) : void
output IVsOutputWindowPane
Résultat void

SetSite() public méthode

public SetSite ( Microsoft site ) : int
site Microsoft
Résultat int

SetSpecificEditorProperty() public méthode

public SetSpecificEditorProperty ( string mkDocument, int propid, object value ) : int
mkDocument string
propid int
value object
Résultat int

ShowAllFiles() protected méthode

Enables / Disables the ShowAllFileMode.
protected ShowAllFiles ( ) : int
Résultat int