Search in sources :

Example 1 with HeapPackageNode

use of com.android.tools.idea.editors.hprof.views.nodedata.HeapPackageNode in project android by JetBrains.

the class ClassesTreeView method sortTree.

private void sortTree(@NotNull HeapPackageNode parent) {
    if (parent.isLeaf() || myComparator == null) {
        return;
    }
    List<HeapNode> children = parent.getChildren();
    Collections.sort(children, myComparator);
    for (HeapNode child : children) {
        if (child instanceof HeapPackageNode) {
            sortTree((HeapPackageNode) child);
        }
    }
}
Also used : HeapNode(com.android.tools.idea.editors.hprof.views.nodedata.HeapNode) HeapPackageNode(com.android.tools.idea.editors.hprof.views.nodedata.HeapPackageNode)

Aggregations

HeapNode (com.android.tools.idea.editors.hprof.views.nodedata.HeapNode)1 HeapPackageNode (com.android.tools.idea.editors.hprof.views.nodedata.HeapPackageNode)1