{
loadEmptyTree();
return;
}
ObjectsInTimeEntityQuerier dataQuerier=new ObjectsInTimeEntityQuerier();
//cargar hilos
List<EThread> lThreads = dataQuerier.getThreads(0l, event.getNanosFromStart());
roots[0].setChildren(toTreeNode(lThreads));
List<EReferenceType> lClasses = dataQuerier.getReferenceTypes(0l, event.getNanosFromStart());
roots[1].setChildren(toTreeNode(lClasses));
//hijos clase
int i=0;
for(EReferenceType refType : lClasses)
{
TreeNode[] childs=new TreeNode[]{new TreeNode("Static Fields"), new TreeNode("Static Methods"),new TreeNode("Objects")};
roots[1].getChildren()[i++].setChildren(childs);
childs[0].setChildren(toTreeNode(dataQuerier.getStaticFields(0l, event.getNanosFromStart(), refType)));
childs[1].setChildren(toTreeNode(dataQuerier.getStaticMethods(0l, event.getNanosFromStart(), refType)));
List<EObjectReference> lObjects = dataQuerier.getObjects(0l, event.getNanosFromStart(), refType);
childs[2].setChildren(toTreeNode(lObjects));
//hijos objetos
int j=0;
for(EObjectReference objRef : lObjects)
{
TreeNode[] objChilds=new TreeNode[]{new TreeNode("Object Fields"), new TreeNode("Object Methods")};
childs[2].getChildren()[j++].setChildren(objChilds);
objChilds[0].setChildren(toTreeNode(dataQuerier.getObjectFields(0l, event.getNanosFromStart(), objRef)));
objChilds[1].setChildren(toTreeNode(dataQuerier.getObjectMethods(0l, event.getNanosFromStart(), objRef)));
}
}
viewer.setInput(roots);
}