public static List < Object > getAllNodes ( TreeModel treeModel ) { List < Object > result = new ArrayList < Object > ( ) ; getAllDescendants ( treeModel , treeModel . getRoot ( ) , result ) ; result . add ( 0 , treeModel . getRoot ( ) ) ; return result ; }
Return all nodes of the given tree model