refactor!: Add setSelectedItem() to IToolbox. (#8650)

This commit is contained in:
Aaron Dodson
2024-11-12 11:45:20 -08:00
committed by GitHub
parent ae2a140141
commit af5905a3e6

View File

@@ -94,7 +94,7 @@ export interface IToolbox extends IRegistrable {
setVisible(isVisible: boolean): void;
/**
* Selects the toolbox item by it's position in the list of toolbox items.
* Selects the toolbox item by its position in the list of toolbox items.
*
* @param position The position of the item to select.
*/
@@ -107,6 +107,14 @@ export interface IToolbox extends IRegistrable {
*/
getSelectedItem(): IToolboxItem | null;
/**
* Sets the selected item.
*
* @param item The toolbox item to select, or null to remove the current
* selection.
*/
setSelectedItem(item: IToolboxItem | null): void;
/** Disposes of this toolbox. */
dispose(): void;
}