Search
Preparing search index...
The search index is not available
Theia TypeDoc
Options
All
Public
Public/Protected
All
Inherited
Menu
Theia TypeDoc
core
TreeModelImpl
Class TreeModelImpl
Hierarchy
TreeModelImpl
CompressedTreeModel
Implements
TreeModel
SelectionProvider
<
ReadonlyArray
<
Readonly
<
SelectableTreeNode
>
>
>
Index
Constructors
constructor
Properties
expansion
Service
focus
Service
logger
navigation
Service
on
Changed
Emitter
on
Open
Node
Emitter
selection
Service
to
Dispose
tree
tree
Search
Accessors
on
Changed
on
Did
Change
Busy
on
Expansion
Changed
on
Node
Refreshed
on
Open
Node
on
Selection
Changed
root
selected
Nodes
Methods
add
Selection
can
Navigate
Backward
can
Navigate
Forward
clear
Selection
collapse
All
collapse
Node
create
Backward
Iterator
create
Forward
Iterator
For
Node
create
Iterator
dispose
do
Get
Next
Node
do
Navigate
do
Open
Node
expand
Node
fire
Changed
get
Expansion
Candidates
get
Focused
Node
get
Next
Selectable
Node
get
Node
get
Prev
Selectable
Node
handle
Expansion
init
is
Visible
Selectable
Node
mark
As
Busy
navigate
Backward
navigate
Forward
navigate
To
open
Node
refresh
restore
State
select
If
Ancestor
Of
Selected
select
Next
Node
select
Node
select
Parent
select
Prev
Node
select
Range
store
State
toggle
Node
toggle
Node
Expansion
validate
Node
Constructors
constructor
new
Tree
Model
Impl
(
)
:
TreeModelImpl
Returns
TreeModelImpl
Properties
Protected
Readonly
expansion
Service
expansion
Service
:
TreeExpansionService
Protected
Readonly
focus
Service
focus
Service
:
TreeFocusService
Protected
Readonly
logger
logger
:
ILogger
Protected
Readonly
navigation
Service
navigation
Service
:
TreeNavigationService
Protected
Readonly
on
Changed
Emitter
on
Changed
Emitter
:
Emitter
<
void
>
= ...
Protected
Readonly
on
Open
Node
Emitter
on
Open
Node
Emitter
:
Emitter
<
TreeNode
>
= ...
Protected
Readonly
selection
Service
selection
Service
:
TreeSelectionService
Protected
Readonly
to
Dispose
to
Dispose
:
DisposableCollection
= ...
Protected
Readonly
tree
tree
:
Tree
Protected
Readonly
tree
Search
tree
Search
:
TreeSearch
Accessors
on
Changed
get
onChanged
(
)
:
Event
<
void
>
Returns
Event
<
void
>
on
Did
Change
Busy
get
onDidChangeBusy
(
)
:
Event
<
TreeNode
>
Returns
Event
<
TreeNode
>
on
Expansion
Changed
get
onExpansionChanged
(
)
:
Event
<
Readonly
<
ExpandableTreeNode
>
>
Returns
Event
<
Readonly
<
ExpandableTreeNode
>
>
on
Node
Refreshed
get
onNodeRefreshed
(
)
:
Event
<
Readonly
<
CompositeTreeNode
>
&
WaitUntilEvent
>
Returns
Event
<
Readonly
<
CompositeTreeNode
>
&
WaitUntilEvent
>
on
Open
Node
get
onOpenNode
(
)
:
Event
<
TreeNode
>
Returns
Event
<
TreeNode
>
on
Selection
Changed
get
onSelectionChanged
(
)
:
Event
<
readonly
Readonly
<
SelectableTreeNode
>
[]
>
Returns
Event
<
readonly
Readonly
<
SelectableTreeNode
>
[]
>
root
get
root
(
)
:
undefined
|
TreeNode
set
root
(
root
:
undefined
|
TreeNode
)
:
void
Returns
undefined
|
TreeNode
Parameters
root:
undefined
|
TreeNode
Returns
void
selected
Nodes
get
selectedNodes
(
)
:
readonly
Readonly
<
SelectableTreeNode
>
[]
Returns
readonly
Readonly
<
SelectableTreeNode
>
[]
Methods
add
Selection
add
Selection
(
selectionOrTreeNode
:
Readonly
<
SelectableTreeNode
>
|
TreeSelection
)
:
void
Parameters
selectionOrTreeNode:
Readonly
<
SelectableTreeNode
>
|
TreeSelection
Returns
void
can
Navigate
Backward
can
Navigate
Backward
(
)
:
boolean
Returns
boolean
can
Navigate
Forward
can
Navigate
Forward
(
)
:
boolean
Returns
boolean
clear
Selection
clear
Selection
(
)
:
void
Returns
void
collapse
All
collapse
All
(
raw
?:
Readonly
<
CompositeTreeNode
>
)
:
Promise
<
boolean
>
Parameters
Optional
raw:
Readonly
<
CompositeTreeNode
>
Returns
Promise
<
boolean
>
collapse
Node
collapse
Node
(
raw
?:
Readonly
<
ExpandableTreeNode
>
)
:
Promise
<
boolean
>
Parameters
Optional
raw:
Readonly
<
ExpandableTreeNode
>
Returns
Promise
<
boolean
>
Protected
create
Backward
Iterator
create
Backward
Iterator
(
node
:
undefined
|
TreeNode
)
:
undefined
|
TreeIterator
Parameters
node:
undefined
|
TreeNode
Returns
undefined
|
TreeIterator
Protected
create
Forward
Iterator
For
Node
create
Forward
Iterator
For
Node
(
node
:
TreeNode
)
:
TreeIterator
Parameters
node:
TreeNode
Returns
TreeIterator
Protected
create
Iterator
create
Iterator
(
node
:
undefined
|
TreeNode
)
:
undefined
|
TreeIterator
Parameters
node:
undefined
|
TreeNode
Returns
undefined
|
TreeIterator
dispose
dispose
(
)
:
void
Returns
void
Protected
do
Get
Next
Node
do
Get
Next
Node
<
T
>
(
iterator
:
TreeIterator
, criterion
:
(
(
node
:
TreeNode
)
=>
node
is
T
)
)
:
undefined
|
T
Type Parameters
T
extends
TreeNode
Parameters
iterator:
TreeIterator
criterion:
(
(
node
:
TreeNode
)
=>
node
is
T
)
(
node
:
TreeNode
)
:
node
is
T
Parameters
node:
TreeNode
Returns
node
is
T
Returns
undefined
|
T
Protected
do
Navigate
do
Navigate
(
node
:
TreeNode
)
:
Promise
<
void
>
Parameters
node:
TreeNode
Returns
Promise
<
void
>
Protected
do
Open
Node
do
Open
Node
(
node
:
TreeNode
)
:
void
Parameters
node:
TreeNode
Returns
void
expand
Node
expand
Node
(
raw
?:
Readonly
<
ExpandableTreeNode
>
)
:
Promise
<
undefined
|
ExpandableTreeNode
>
Parameters
Optional
raw:
Readonly
<
ExpandableTreeNode
>
Returns
Promise
<
undefined
|
ExpandableTreeNode
>
Protected
fire
Changed
fire
Changed
(
)
:
void
Returns
void
Protected
get
Expansion
Candidates
get
Expansion
Candidates
(
raw
?:
Readonly
<
TreeNode
>
)
:
IterableIterator
<
undefined
|
TreeNode
>
Parameters
Optional
raw:
Readonly
<
TreeNode
>
Returns
IterableIterator
<
undefined
|
TreeNode
>
get
Focused
Node
get
Focused
Node
(
)
:
undefined
|
SelectableTreeNode
Returns
undefined
|
SelectableTreeNode
get
Next
Selectable
Node
get
Next
Selectable
Node
(
node
?:
undefined
|
TreeNode
)
:
undefined
|
SelectableTreeNode
Parameters
node:
undefined
|
TreeNode
= ...
Returns
undefined
|
SelectableTreeNode
get
Node
get
Node
(
id
:
undefined
|
string
)
:
undefined
|
TreeNode
Parameters
id:
undefined
|
string
Returns
undefined
|
TreeNode
get
Prev
Selectable
Node
get
Prev
Selectable
Node
(
node
?:
undefined
|
TreeNode
)
:
undefined
|
SelectableTreeNode
Parameters
node:
undefined
|
TreeNode
= ...
Returns
undefined
|
SelectableTreeNode
Protected
handle
Expansion
handle
Expansion
(
node
:
Readonly
<
ExpandableTreeNode
>
)
:
void
Parameters
node:
Readonly
<
ExpandableTreeNode
>
Returns
void
Protected
init
init
(
)
:
void
Returns
void
Protected
is
Visible
Selectable
Node
is
Visible
Selectable
Node
(
node
:
TreeNode
)
:
node
is
SelectableTreeNode
Parameters
node:
TreeNode
Returns
node
is
SelectableTreeNode
mark
As
Busy
mark
As
Busy
(
node
:
Readonly
<
TreeNode
>
, ms
:
number
, token
:
CancellationToken
)
:
Promise
<
void
>
Parameters
node:
Readonly
<
TreeNode
>
ms:
number
token:
CancellationToken
Returns
Promise
<
void
>
navigate
Backward
navigate
Backward
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
navigate
Forward
navigate
Forward
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
navigate
To
navigate
To
(
nodeOrId
:
undefined
|
string
|
TreeNode
)
:
Promise
<
undefined
|
TreeNode
>
Parameters
nodeOrId:
undefined
|
string
|
TreeNode
Returns
Promise
<
undefined
|
TreeNode
>
open
Node
open
Node
(
raw
?:
TreeNode
)
:
void
Parameters
Optional
raw:
TreeNode
Returns
void
refresh
refresh
(
parent
?:
Readonly
<
CompositeTreeNode
>
)
:
Promise
<
undefined
|
CompositeTreeNode
>
Parameters
Optional
parent:
Readonly
<
CompositeTreeNode
>
Returns
Promise
<
undefined
|
CompositeTreeNode
>
restore
State
restore
State
(
state
:
TreeModelImpl
.
State
)
:
void
Parameters
state:
TreeModelImpl
.
State
Returns
void
Protected
select
If
Ancestor
Of
Selected
select
If
Ancestor
Of
Selected
(
node
:
Readonly
<
ExpandableTreeNode
>
)
:
void
Select the given node if it is the ancestor of a selected node.
Parameters
node:
Readonly
<
ExpandableTreeNode
>
Returns
void
select
Next
Node
select
Next
Node
(
type
?:
SelectionType
)
:
void
Parameters
type:
SelectionType
= TreeSelection.SelectionType.DEFAULT
Returns
void
select
Node
select
Node
(
node
:
Readonly
<
SelectableTreeNode
>
)
:
void
Parameters
node:
Readonly
<
SelectableTreeNode
>
Returns
void
select
Parent
select
Parent
(
)
:
void
Returns
void
select
Prev
Node
select
Prev
Node
(
type
?:
SelectionType
)
:
void
Parameters
type:
SelectionType
= TreeSelection.SelectionType.DEFAULT
Returns
void
select
Range
select
Range
(
node
:
Readonly
<
SelectableTreeNode
>
)
:
void
Parameters
node:
Readonly
<
SelectableTreeNode
>
Returns
void
store
State
store
State
(
)
:
TreeModelImpl
.
State
Returns
TreeModelImpl
.
State
toggle
Node
toggle
Node
(
node
:
Readonly
<
SelectableTreeNode
>
)
:
void
Parameters
node:
Readonly
<
SelectableTreeNode
>
Returns
void
toggle
Node
Expansion
toggle
Node
Expansion
(
raw
?:
Readonly
<
ExpandableTreeNode
>
)
:
Promise
<
void
>
Parameters
Optional
raw:
Readonly
<
ExpandableTreeNode
>
Returns
Promise
<
void
>
validate
Node
validate
Node
(
node
:
undefined
|
TreeNode
)
:
undefined
|
TreeNode
Parameters
node:
undefined
|
TreeNode
Returns
undefined
|
TreeNode
Modules
bulk-
edit
callhierarchy
console
core
Application
Error
Application
Shell
Application
Shell
Layout
Migration
Error
Application
Shell
Mouse
Tracker
Array
Utils
Badge
Widget
Binary
Buffer
Readable
Binary
Buffer
Readable
Buffered
Stream
Binary
Buffer
Readable
Stream
Binary
Buffer
Writeable
Stream
Bindable
CSSIcon
Cancellation
Token
Color
Command
Command
Menu
Node
Common
Commands
Common
Menus
Composite
Tree
Element
Composite
Tree
Element
Node
Composite
Tree
Node
Compound
Menu
Node
Console
Logger
Context
Key
Decorated
Tree
Node
Decoration
Style
Default
Json
Schema
Contribution
Description
Widget
Dialog
Dialog
Error
Diff
Uris
Disposable
Disposable
Group
Dynamic
Toolbar
Widget
Electron
Commands
Electron
Main
Process
Argv
Electron
Menus
Electron
Messaging
Service
Electron
Text
Input
Context
Menu
Endpoint
Event
Event
Listener
Object
Expandable
Tree
Node
Extractable
Widget
File
Uri
Focusable
Tree
Selection
Frontend
Application
Preference
Config
Fuzzy
Search
Hover
Position
IPCEntry
Point
Iterators
Key
Key
Code
Key
Modifier
Key
Sequence
Keybinding
Keybinding
Contexts
Keybinding
Registry
Keybinding
Scope
Keyboard
Commands
Keys
Or
Key
Codes
Label
Icon
Localization
Log
Level
Markdown
String
Menu
Action
Menu
Toolbar
Item
Messaging
Contribution
Messaging
Service
Mock
Tree
Model
Navigatable
Navigatable
Widget
Navigatable
Widget
Options
OS
On
Will
Stop
Action
Override
Preference
Name
Path
Preference
Data
Property
Preference
Provider
Data
Change
Preference
Schema
Preference
Schema
Properties
Preference
Scope
Prioritizeable
Progress
Message
Quick
Input
Button
Quick
Pick
Item
Quick
Pick
Separator
Raw
Keybinding
Readable
Resource
Resource
Error
Saveable
Saveable
Widget
Scrollable
Tab
Bar
Search
Box
Search
Box
Debounce
Options
Search
Box
Props
Selectable
Tree
Node
Selection
Command
Handler
Severity
Shell
Layout
Restorer
Side
Panel
Special
Cases
Stateful
Widget
Styles
Tab
Bar
Delegator
Tab
Bar
Toolbar
Tab
Bar
Toolbar
Item
Text
Document
Content
Change
Delta
Theia
Dock
Panel
Theia
RendererAPI
Tree
Element
Node
Tree
Iterator
Tree
Model
Impl
Tree
Node
Tree
Selection
Tree
Selection
Service
Impl
Tree
Source
Node
Tree
Widget
Tree
Widget
Selection
URIIcon
Reference
Unsafe
Widget
Utilities
Uri
Aware
Command
Handler
Uri
Selection
View
Container
View
Container
Layout
View
Container
Part
Wait
Until
Event
Widget
Decoration
Window
Commands
Zoom
Level
nls
debug
editor
editor-
preview
electron
external-
terminal
file-
search
filesystem
getting-
started
git
keymaps
markers
memory-
inspector
messages
metrics
mini-
browser
monaco
navigator
outline-
view
output
plugin
plugin-
dev
plugin-
ext
plugin-
ext-
vscode
plugin-
metrics
preferences
preview
process
property-
view
scm
scm-
extra
search-
in-
workspace
secondary-
window
task
terminal
timeline
toolbar
typehierarchy
userstorage
variable-
resolver
vsx-
registry
workspace
Tree
Model
Impl
constructor
expansion
Service
focus
Service
logger
navigation
Service
on
Changed
Emitter
on
Open
Node
Emitter
selection
Service
to
Dispose
tree
tree
Search
on
Changed
on
Did
Change
Busy
on
Expansion
Changed
on
Node
Refreshed
on
Open
Node
on
Selection
Changed
root
selected
Nodes
add
Selection
can
Navigate
Backward
can
Navigate
Forward
clear
Selection
collapse
All
collapse
Node
create
Backward
Iterator
create
Forward
Iterator
For
Node
create
Iterator
dispose
do
Get
Next
Node
do
Navigate
do
Open
Node
expand
Node
fire
Changed
get
Expansion
Candidates
get
Focused
Node
get
Next
Selectable
Node
get
Node
get
Prev
Selectable
Node
handle
Expansion
init
is
Visible
Selectable
Node
mark
As
Busy
navigate
Backward
navigate
Forward
navigate
To
open
Node
refresh
restore
State
select
If
Ancestor
Of
Selected
select
Next
Node
select
Node
select
Parent
select
Prev
Node
select
Range
store
State
toggle
Node
toggle
Node
Expansion
validate
Node
Select the given node if it is the ancestor of a selected node.