use of org.eclipse.titan.executor.executors.ITreeBranch in project titan.EclipsePlug-ins by eclipse.
the class ExecutorMonitorContentProvider method getChildren.
@Override
public ITreeLeaf[] getChildren(final Object parentElement) {
if (parentElement instanceof MainControllerElement) {
final BaseExecutor executor = ((MainControllerElement) parentElement).executor();
final List<ITreeLeaf> children = executor.mainControllerRoot().children();
return children.toArray(new ITreeLeaf[children.size()]);
} else if (parentElement instanceof ITreeBranch) {
final List<ITreeLeaf> children = ((ITreeBranch) parentElement).children();
return children.toArray(new ITreeLeaf[children.size()]);
}
return new ITreeBranch[] {};
}
Aggregations