本文整理匯總了TypeScript中sql/workbench/api/node/sqlExtHost.protocol.MainThreadObjectExplorerShape類的典型用法代碼示例。如果您正苦於以下問題:TypeScript protocol.MainThreadObjectExplorerShape類的具體用法?TypeScript protocol.MainThreadObjectExplorerShape怎麽用?TypeScript protocol.MainThreadObjectExplorerShape使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了protocol.MainThreadObjectExplorerShape類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: ExtHostObjectExplorerNode
public $findNodes(connectionId: string, type: string, schema: string, name: string, database: string, parentObjectNames: string[]): Thenable<sqlops.objectexplorer.ObjectExplorerNode[]> {
return this._proxy.$findNodes(connectionId, type, schema, name, database, parentObjectNames).then(results => results.map(result => new ExtHostObjectExplorerNode(result, connectionId, this._proxy)));
}
示例2:
isExpanded(): Thenable<boolean> {
return this._proxy.$isExpanded(this.connectionId, this.nodePath);
}
示例3: ExtHostObjectExplorerNode
getChildren(): Thenable<sqlops.objectexplorer.ObjectExplorerNode[]> {
return this._proxy.$getChildren(this.connectionId, this.nodePath).then(children => children.map(nodeInfo => new ExtHostObjectExplorerNode(nodeInfo, this.connectionId, this._proxy)));
}
示例4:
setSelected(selected: boolean, clearOtherSelections: boolean = undefined): Thenable<void> {
return this._proxy.$setSelected(this.connectionId, this.nodePath, selected, clearOtherSelections);
}