@ Override public Task addTask ( ) { ProjectFile parent = getParentFile ( ) ; Task task = new Task ( parent , this ) ; m_children . add ( task ) ; parent . getTasks ( ) . add ( task ) ; setSummary ( true ) ; return ( task ) ; }
This method allows nested tasks to be added with the WBS being completed automatically .