* @param selectedCatalog
* the catalog that was selected.
*/
private void expandTablesForCatalog(ISession session, String selectedCatalog)
{
IObjectTreeAPI api = session.getObjectTreeAPIOfActiveSessionWindow();
api.refreshTree(true);
if (api.selectInObjectTree(selectedCatalog, null, new FilterMatcher("TABLE", null)))
{
ObjectTreeNode[] nodes = api.getSelectedNodes();
if (nodes.length > 0)
{
ObjectTreeNode tableNode = nodes[0];
// send a tree expansion event to the object tree
api.expandNode(tableNode);
}
}
}