C# 클래스 Nemerle.VisualStudio.Project.NemerleProjectNode

상속: Microsoft.VisualStudio.Project.ProjectNode, IVsProjectSpecificEditorMap2
파일 보기 프로젝트 열기: rsdn/nemerle 1 사용 예제들

Private Properties

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

AddComponent() 공개 메소드

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
리턴 int

AddFileFromTemplate() 공개 메소드

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
리턴 void

AddItem() 공개 메소드

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
리턴 int

AddNewFileNodeToHierarchy() 보호된 메소드

protected AddNewFileNodeToHierarchy ( HierarchyNode parentNode, string fileName ) : void
parentNode HierarchyNode
fileName string
리턴 void

AddProjectReference() 공개 메소드

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
리턴 int

AddWizardCustomParams() 보호된 메소드

protected AddWizardCustomParams ( HierarchyNode parent, string file, string>.Dictionary customParams ) : void
parent HierarchyNode
file string
customParams string>.Dictionary
리턴 void

Close() 공개 메소드

public Close ( ) : int
리턴 int

CreateConfigProvider() 보호된 메소드

protected CreateConfigProvider ( ) : ConfigProvider
리턴 Microsoft.VisualStudio.Project.ConfigProvider

CreateDependentFileNode() 공개 메소드

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

CreateFileNode() 공개 메소드

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
리턴 Microsoft.VisualStudio.Project.FileNode

CreateFolderNodes() 공개 메소드

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
리턴 HierarchyNode

CreatePropertiesObject() 보호된 메소드

protected CreatePropertiesObject ( ) : NodeProperties
리턴 Microsoft.VisualStudio.Project.NodeProperties

CreateReferenceContainerNode() 보호된 메소드

protected CreateReferenceContainerNode ( ) : ReferenceContainerNode
리턴 Microsoft.VisualStudio.Project.ReferenceContainerNode

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

GetAutomationObject() 공개 메소드

Gets the automation object for the project node.
public GetAutomationObject ( ) : object
리턴 object

GetConfigurationDependentPropertyPages() 보호된 메소드

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[]
리턴 System.Guid[]

GetConfigurationIndependentPropertyPages() 보호된 메소드

Overriding to provide project general property page
protected GetConfigurationIndependentPropertyPages ( ) : System.Guid[]
리턴 System.Guid[]

GetFile() 공개 메소드

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.
리턴 int

GetFormatList() 공개 메소드

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

GetGuidProperty() 공개 메소드

public GetGuidProperty ( int propid, System.Guid &guid ) : int
propid int
guid System.Guid
리턴 int

GetMacroReferenceContainer() 공개 메소드

public GetMacroReferenceContainer ( ) : IReferenceContainer
리턴 IReferenceContainer

GetOutputExtension() 공개 정적인 메소드

public static GetOutputExtension ( OutputType outputType ) : string
outputType OutputType
리턴 string

GetProjectOptions() 공개 메소드

public GetProjectOptions ( string config ) : ProjectOptions
config string
리턴 Microsoft.VisualStudio.Project.ProjectOptions

GetProperty() 공개 메소드

public GetProperty ( int propId ) : object
propId int
리턴 object

GetServiceProvider() 공개 메소드

public GetServiceProvider ( ) : IServiceProvider
리턴 IServiceProvider

GetSpecificEditorProperty() 공개 메소드

public GetSpecificEditorProperty ( string mkDocument, int propid, object &result ) : int
mkDocument string
propid int
result object
리턴 int

GetSpecificEditorType() 공개 메소드

public GetSpecificEditorType ( string mkDocument, System.Guid &guidEditorType ) : int
mkDocument string
guidEditorType System.Guid
리턴 int

InternalExecCommand() 보호된 메소드

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
리턴 int

IsCodeFile() 공개 메소드

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
리턴 bool

IsEmbeddedResource() 공개 메소드

public IsEmbeddedResource ( string strFileName ) : bool
strFileName string
리턴 bool

IsItemTypeFileType() 보호된 메소드

protected IsItemTypeFileType ( string type ) : bool
type string
리턴 bool

Load() 공개 메소드

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
리턴 void

NemerleProjectNode() 공개 메소드

public NemerleProjectNode ( NemerlePackage pkg ) : System
pkg NemerlePackage
리턴 System

OnHandleConfigurationRelatedGlobalProperties() 보호된 메소드

protected OnHandleConfigurationRelatedGlobalProperties ( object sender, ActiveConfigurationChangedEventArgs eventArgs ) : void
sender object
eventArgs Microsoft.VisualStudio.Project.ActiveConfigurationChangedEventArgs
리턴 void

OpenItem() 공개 메소드

public OpenItem ( uint itemId, System.Guid &logicalView, IntPtr punkDocDataExisting, IVsWindowFrame &frame ) : int
itemId uint
logicalView System.Guid
punkDocDataExisting System.IntPtr
frame IVsWindowFrame
리턴 int

PrepareBuild() 공개 메소드

public PrepareBuild ( string config, bool cleanBuild ) : void
config string
cleanBuild bool
리턴 void

ProcessFiles() 보호된 메소드

Loads file items from the project file into the hierarchy.
protected ProcessFiles ( ) : void
리턴 void

ProcessFolders() 보호된 메소드

protected ProcessFolders ( ) : void
리턴 void

ProcessReferences() 보호된 메소드

protected ProcessReferences ( ) : void
리턴 void

SetOutputLogger() 보호된 메소드

protected SetOutputLogger ( IVsOutputWindowPane output ) : void
output IVsOutputWindowPane
리턴 void

SetSite() 공개 메소드

public SetSite ( Microsoft site ) : int
site Microsoft
리턴 int

SetSpecificEditorProperty() 공개 메소드

public SetSpecificEditorProperty ( string mkDocument, int propid, object value ) : int
mkDocument string
propid int
value object
리턴 int

ShowAllFiles() 보호된 메소드

Enables / Disables the ShowAllFileMode.
protected ShowAllFiles ( ) : int
리턴 int