JTree tree = getContainer().getTree();
if (tree.getLastSelectedPathComponent() != null) {
DefaultMutableTreeNode node = (DefaultMutableTreeNode)tree.getLastSelectedPathComponent();
if (node.getUserObject() instanceof ObjectInfo) {
ObjectInfo oj = (ObjectInfo)node.getUserObject();
if (oj.flag.equals("layout")) {
DAO dao = DAO.getInstance();
dao.query(Resources.SELECT_CL_SQL);
dao.setInt(1, getContainer().getCurrentObject().getClsId());