Test hook: simulates the user checking/unchecking boxes in the UI.
Test hook: simulates the user collapsing a node.
Test hook: simulates the user expanding a node.
Test hook: simulates the user selecting nodes; also updates selection.
Test hook: simulates the view becoming visible/hidden; also updates visible.
Creates a scriptable native tree-view shape. It records state and fires view events, but does not invoke a
TreeDataProvider, render elements, or implement reveal/selection policy on the workbench's behalf.