final List<ObjectTreeNode> childNodes = super.createChildren(session, parentNode);
final SQLDatabaseMetaData md = session.getSQLConnection().getSQLMetaData();
// Users.
DatabaseObjectInfo dboInfo = new DatabaseObjectInfo(null, null, "USERS",
IObjectTypes.USER_PARENT, md);
ObjectTreeNode node = new ObjectTreeNode(session, dboInfo);
childNodes.add(node);
if (InstanceDetailsTab.isAccessible(session))
{
// Instances.
dboInfo = new DatabaseObjectInfo(null, null, "INSTANCES",
IObjectTypes.INSTANCE_PARENT, md);
node = new ObjectTreeNode(session, dboInfo);
childNodes.add(node);
}
if (SessionDetailsTab.isAccessible(session))
{
// Sessions.
dboInfo = new DatabaseObjectInfo(null, null, "SESSIONS",
IObjectTypes.SESSION_PARENT, md);
node = new ObjectTreeNode(session, dboInfo);
childNodes.add(node);
}