C# Class VsTeXProject.VisualStudio.Project.ReferenceNode

Inheritance: HierarchyNode
Mostrar archivo Open project: mimura1133/vstex Class Usage Examples

Public Methods

Method Description
AddReference ( ) : void

Links a reference node to the project and hierarchy.

GetAutomationObject ( ) : object

Get an instance of the automation object for ReferenceNode

GetEditLabel ( ) : string

Disable inline editing of Caption of a ReferendeNode

GetIconHandle ( bool open ) : object
GetMkDocument ( ) : string

This method is called by the interface method GetMkDocument to specify the item moniker.

Protected Methods

Method Description
BindReferenceData ( ) : void
CanAddReference ( CannotAddReferenceErrorMessage &errorHandler ) : bool

Validates that a reference can be added.

CanDeleteItem ( __VSDELETEITEMOPERATION deleteOperation ) : bool
CreatePropertiesObject ( ) : NodeProperties
ExcludeFromProject ( ) : int

Not supported.

ExecCommandOnNode ( System.Guid cmdGroup, uint cmd, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut ) : int
IsAlreadyAdded ( ) : bool

Checks if a reference is already added. The method parses all references and compares the Url.

IsAlreadyAdded ( ReferenceNode &existingEquivalentNode ) : bool

Checks if a reference is already added. The method parses all references and compares the Url.

PrepareSelectedNodesForClipBoard ( ) : StringBuilder

References node cannot be dragged.

QueryStatusOnNode ( System.Guid cmdGroup, uint cmd, IntPtr pCmdText, QueryStatusResult &result ) : int
ReferenceNode ( ProjectNode root ) : System

constructor for the ReferenceNode

ReferenceNode ( ProjectNode root, ProjectElement element ) : System

constructor for the ReferenceNode

ResolveReference ( ) : void

Resolves references.

ShowObjectBrowser ( ) : int

Shows the Object Browser

Private Methods

Method Description
RefreshReference ( ) : void

Refreshes a reference by re-resolving it and redrawing the icon.

Method Details

AddReference() public method

Links a reference node to the project and hierarchy.
public AddReference ( ) : void
return void

BindReferenceData() protected abstract method

protected abstract BindReferenceData ( ) : void
return void

CanAddReference() protected method

Validates that a reference can be added.
protected CanAddReference ( CannotAddReferenceErrorMessage &errorHandler ) : bool
errorHandler CannotAddReferenceErrorMessage A CannotAddReferenceErrorMessage delegate to show the error message.
return bool

CanDeleteItem() protected method

protected CanDeleteItem ( __VSDELETEITEMOPERATION deleteOperation ) : bool
deleteOperation __VSDELETEITEMOPERATION
return bool

CreatePropertiesObject() protected method

protected CreatePropertiesObject ( ) : NodeProperties
return NodeProperties

ExcludeFromProject() protected method

Not supported.
protected ExcludeFromProject ( ) : int
return int

ExecCommandOnNode() protected method

protected ExecCommandOnNode ( System.Guid cmdGroup, uint cmd, uint nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut ) : int
cmdGroup System.Guid
cmd uint
nCmdexecopt uint
pvaIn System.IntPtr
pvaOut System.IntPtr
return int

GetAutomationObject() public method

Get an instance of the automation object for ReferenceNode
public GetAutomationObject ( ) : object
return object

GetEditLabel() public method

Disable inline editing of Caption of a ReferendeNode
public GetEditLabel ( ) : string
return string

GetIconHandle() public method

public GetIconHandle ( bool open ) : object
open bool
return object

GetMkDocument() public method

This method is called by the interface method GetMkDocument to specify the item moniker.
public GetMkDocument ( ) : string
return string

IsAlreadyAdded() protected method

Checks if a reference is already added. The method parses all references and compares the Url.
protected IsAlreadyAdded ( ) : bool
return bool

IsAlreadyAdded() protected method

Checks if a reference is already added. The method parses all references and compares the Url.
protected IsAlreadyAdded ( ReferenceNode &existingEquivalentNode ) : bool
existingEquivalentNode ReferenceNode The existing reference, if one is found.
return bool

PrepareSelectedNodesForClipBoard() protected method

References node cannot be dragged.
protected PrepareSelectedNodesForClipBoard ( ) : StringBuilder
return StringBuilder

QueryStatusOnNode() protected method

protected QueryStatusOnNode ( System.Guid cmdGroup, uint cmd, IntPtr pCmdText, QueryStatusResult &result ) : int
cmdGroup System.Guid
cmd uint
pCmdText System.IntPtr
result QueryStatusResult
return int

ReferenceNode() protected method

constructor for the ReferenceNode
protected ReferenceNode ( ProjectNode root ) : System
root ProjectNode
return System

ReferenceNode() protected method

constructor for the ReferenceNode
protected ReferenceNode ( ProjectNode root, ProjectElement element ) : System
root ProjectNode
element ProjectElement
return System

ResolveReference() protected method

Resolves references.
protected ResolveReference ( ) : void
return void

ShowObjectBrowser() protected method

Shows the Object Browser
protected ShowObjectBrowser ( ) : int
return int