{
TreeTable objTreeTable = (TreeTable) getComponent("tree");
ITreeModelSource objTreeModelSource = objTreeTable.getTreeModelSource();
ITreeStateModel objTreeStateModel = objTreeModelSource.getTreeModel().getTreeStateModel();
Object objSelectedNodeUID = objTreeStateModel.getSelectedNode();
ITreeNode objSelectedNode = null;
if (objSelectedNodeUID != null)
objSelectedNode = (ITreeNode) getTreeModel().getTreeDataModel().getObject(
objSelectedNodeUID);
else
{
objSelectedNode = (ITreeNode) getTreeModel().getTreeDataModel().getRoot();
}
return objSelectedNode.getChildren();
}