@Override
public void handleSuccess(List<EntityData> children) {
if (propName == null) {
propName = "RootPropertyNode";
}
TreeNode parentNode = treePanel.getNodeById(propName);
if (parentNode == null) {
GWT.log("Cannot find node: " + propName, null);
return;
}
// already loaded?
// TODO - not a very good method
if (parentNode.getFirstChild() != null) {
// children are already fetched? Maybe?
// TODO: think about this situation
if (getSubpropertiesOfSubproperties) {
for (Object element2 : children) {
EntityData child = (EntityData) element2;
getSubProperties(child.getName(), false);
}
}
return;
}
for (Object element2 : children) {
EntityData childData = (EntityData) element2;
// if (!hasChild(clsName, childName)) {
parentNode.appendChild(createTreeNode(childData));
// }
}
if (getSubpropertiesOfSubproperties) {
for (Object element2 : children) {