use of org.eclipse.linuxtools.internal.gprof.view.histogram.HistRoot in project linuxtools by eclipse.
the class FunctionHistogramContentProvider method getChildren.
@Override
public Object[] getChildren(Object parentElement) {
if (parentElement instanceof HistRoot) {
HistRoot root = (HistRoot) parentElement;
LinkedList<? extends TreeElement> ret = getFunctionChildrenList(root);
return ret.toArray();
}
return super.getChildren(parentElement);
}
use of org.eclipse.linuxtools.internal.gprof.view.histogram.HistRoot in project linuxtools by eclipse.
the class FunctionHistogramContentProvider method hasChildren.
@Override
public boolean hasChildren(Object element) {
if (element instanceof HistRoot) {
HistRoot root = (HistRoot) element;
LinkedList<? extends TreeElement> ret = getFunctionChildrenList(root);
return !ret.isEmpty();
}
return super.hasChildren(element);
}
Aggregations