private void addModuleToTree ( final DbModule module , final TreeNode tree ) { final TreeNode subTree = new TreeNode ( ) ; subTree . setName ( module . getName ( ) ) ; tree . addChild ( subTree ) ; // Add SubsubModules for ( final DbModule subsubmodule : module . getSubmodules ( ) ) { addModuleToTree ( subsubmodule , subTree ) ; } }
Add a module to a module tree