Interface Tree

The tree - an abstract data type.

interface Tree {
    onChanged: Event<void>;
    onDidChangeBusy: Event<TreeNode>;
    onDidUpdate: Event<TreeNode[]>;
    onNodeRefreshed: Event<Readonly<CompositeTreeNode> & WaitUntilEvent>;
    root: undefined | TreeNode;
    dispose(): void;
    getNode(id): undefined | TreeNode;
    markAsBusy(node, ms, token): Promise<void>;
    markAsChecked(node, checked): void;
    refresh(): Promise<undefined | Readonly<CompositeTreeNode>>;
    refresh(parent): Promise<undefined | Readonly<CompositeTreeNode>>;
    validateNode(node): undefined | TreeNode;
}

Hierarchy (view full)

Implemented by

Properties

onChanged: Event<void>

Emit when the tree is changed.

onDidChangeBusy: Event<TreeNode>

Emits when the busy state of the given node is changed.

onDidUpdate: Event<TreeNode[]>

An update to the tree node occurred, but the tree structure remains unchanged

onNodeRefreshed: Event<Readonly<CompositeTreeNode> & WaitUntilEvent>

Emit when the children of the given node are refreshed.

root: undefined | TreeNode

A root node of this tree. Undefined if there is no root node. Setting a root node refreshes the tree.

Methods