private void addTasks ( MpxjTreeNode parentNode , ChildTaskContainer parent ) { for ( Task task : parent . getChildTasks ( ) ) { final Task t = task ; MpxjTreeNode childNode = new MpxjTreeNode ( task , TASK_EXCLUDED_METHODS ) { @ Override public String toString ( ) { return t . getName ( ) ; } } ; parentNode . add ( childNode ) ; addTasks ( childNode , task ) ; } }
Add tasks to the tree .