C# Class Nitra.VisualStudio.HierarchyListener

Inheritance: IVsHierarchyEvents, IDisposable
Mostra file Open project: rsdn/nitra Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

HierarchyListener ( IVsHierarchy hierarchy ) : System

Initializes a new instance of the HierarchyListener class.

InternalScanHierarchy ( uint itemId ) : void

Do a recursive walk on the hierarchy to find all the nemerle files in it. It will generate an event for every file found.

OnInvalidateIcon ( IntPtr hicon ) : int
OnInvalidateItems ( uint itemidParent ) : int
OnItemAdded ( uint itemidParent, uint itemidSiblingPrev, uint itemidAdded ) : int
OnItemDeleted ( uint itemid ) : int
OnItemsAppended ( uint itemidParent ) : int
OnPropertyChanged ( uint itemid, int propid, uint flags ) : int
StartListening ( bool doInitialScan ) : void

Starts the listening.

StopListening ( ) : void

Stops the listening.

Private Methods

Method Description
GetItemId ( object variantValue ) : uint

Gets the item id.

InternalStopListening ( bool throwOnError ) : bool
IsFile ( uint itemId, string &canonicalName ) : bool
TryFierOnAddReference ( uint currentItem ) : bool

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

HierarchyListener() public method

Initializes a new instance of the HierarchyListener class.
public HierarchyListener ( IVsHierarchy hierarchy ) : System
hierarchy IVsHierarchy The hierarchy.
return System

InternalScanHierarchy() public method

Do a recursive walk on the hierarchy to find all the nemerle files in it. It will generate an event for every file found.
public InternalScanHierarchy ( uint itemId ) : void
itemId uint
return void

OnInvalidateIcon() public method

public OnInvalidateIcon ( IntPtr hicon ) : int
hicon System.IntPtr
return int

OnInvalidateItems() public method

public OnInvalidateItems ( uint itemidParent ) : int
itemidParent uint
return int

OnItemAdded() public method

public OnItemAdded ( uint itemidParent, uint itemidSiblingPrev, uint itemidAdded ) : int
itemidParent uint
itemidSiblingPrev uint
itemidAdded uint
return int

OnItemDeleted() public method

public OnItemDeleted ( uint itemid ) : int
itemid uint
return int

OnItemsAppended() public method

public OnItemsAppended ( uint itemidParent ) : int
itemidParent uint
return int

OnPropertyChanged() public method

public OnPropertyChanged ( uint itemid, int propid, uint flags ) : int
itemid uint
propid int
flags uint
return int

StartListening() public method

Starts the listening.
public StartListening ( bool doInitialScan ) : void
doInitialScan bool if set to true [do initial scan].
return void

StopListening() public method

Stops the listening.
public StopListening ( ) : void
return void