Skip to main content

Class: StaticTreeDataProvider<T>

Type parameters

NameType
Tany

Implements

Constructors

constructor

new StaticTreeDataProvider<T>(items, setItemName?)

Type parameters

NameType
Tany

Parameters

NameType
itemsRecord<TreeItemIndex, TreeItem<T>>
setItemName?(item: TreeItem<T>, newName: string) => TreeItem<T>

Defined in

uncontrolledEnvironment/StaticTreeDataProvider.ts:9

Properties

data

Private data: ExplicitDataSource<any>

Defined in

uncontrolledEnvironment/StaticTreeDataProvider.ts:5


onDidChangeTreeDataEmitter

Private onDidChangeTreeDataEmitter: EventEmitter<TreeItemIndex[]>

Defined in

uncontrolledEnvironment/StaticTreeDataProvider.ts:6


setItemName

Private Optional setItemName: (item: TreeItem<T>, newName: string) => TreeItem<T>

Type declaration

▸ (item, newName): TreeItem<T>

Parameters
NameType
itemTreeItem<T>
newNamestring
Returns

TreeItem<T>

Defined in

uncontrolledEnvironment/StaticTreeDataProvider.ts:7

Methods

getTreeItem

getTreeItem(itemId): Promise<TreeItem<any>>

Parameters

NameType
itemIdTreeItemIndex

Returns

Promise<TreeItem<any>>

Implementation of

TreeDataProvider.getTreeItem

Defined in

uncontrolledEnvironment/StaticTreeDataProvider.ts:18


onChangeItemChildren

onChangeItemChildren(itemId, newChildren): Promise<void>

Parameters

NameType
itemIdTreeItemIndex
newChildrenTreeItemIndex[]

Returns

Promise<void>

Implementation of

TreeDataProvider.onChangeItemChildren

Defined in

uncontrolledEnvironment/StaticTreeDataProvider.ts:22


onDidChangeTreeData

onDidChangeTreeData(listener): Disposable

Parameters

NameType
listener(changedItemIds: TreeItemIndex[]) => void

Returns

Disposable

Implementation of

TreeDataProvider.onDidChangeTreeData

Defined in

uncontrolledEnvironment/StaticTreeDataProvider.ts:27


onRenameItem

onRenameItem(item, name): Promise<void>

Parameters

NameType
itemTreeItem<any>
namestring

Returns

Promise<void>

Implementation of

TreeDataProvider.onRenameItem

Defined in

uncontrolledEnvironment/StaticTreeDataProvider.ts:32