code: 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);
        }
     }
docs: Add resources to the tree.
  
  @param parentNode parent tree node
  @param file resource container