private void addResources ( MpxjTreeNode parentNode , ProjectFile file ) { for ( Resource resource : file . getResources ( ) ) { final Resource r = resource ; MpxjTreeNode childNode = new MpxjTreeNode ( resource ) { @ Override public String toString ( ) { return r . getName ( ) ; } } ; parentNode . add ( childNode ) ; } }
Add resources to the tree .