Search in sources :

Example 1 with ITreeBranch

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[] {};
}
Also used : ITreeBranch(org.eclipse.titan.executor.executors.ITreeBranch) BaseExecutor(org.eclipse.titan.executor.executors.BaseExecutor) List(java.util.List) ITreeLeaf(org.eclipse.titan.executor.executors.ITreeLeaf)

Aggregations

List (java.util.List)1 BaseExecutor (org.eclipse.titan.executor.executors.BaseExecutor)1 ITreeBranch (org.eclipse.titan.executor.executors.ITreeBranch)1 ITreeLeaf (org.eclipse.titan.executor.executors.ITreeLeaf)1