C# Class Boo.BooLangProject.HierarchyListener

Inheritance: IVsHierarchyEvents
显示文件 Open project: jagregory/boolangstudio Class Usage Examples

Public Methods

Method Description
HierarchyListener ( IVsHierarchy hierarchy ) : System
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 ( ) : void

Private Methods

Method Description
CanRecurseInto ( uint item ) : bool

Determines whether an item's children can be recursed into.

GetFirstChild ( uint item ) : object

Gets the first child of an item.

GetItemID ( object variant ) : uint

Gets the item ID of a variant object.

IsBooFile ( uint item, string &canonicalName ) : bool

Checks if a file is a valid Boo document.

IsFile ( uint item ) : bool

Checks if an item is a file.

MoveNext ( uint currentItem ) : uint

Moves to the next sibling in the tree.

RaiseCompleteEvent ( ) : void
RaiseItemAddedEvent ( uint item ) : void

Raises the ItemAdded event for the specified item, if it's appropriate to do so.

Scan ( uint id ) : void

Scans an existing hierarchy, raising events for each file it encounters.

Method Details

HierarchyListener() public method

public HierarchyListener ( IVsHierarchy hierarchy ) : System
hierarchy IVsHierarchy
return System

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

public StartListening ( ) : void
return void