code: private List<CmsResource> getResources(String resource) {
  
          if (VIEW_LIST.equals(getSettings().getExplorerMode())) {
              // check if the list must show the list view or the check content view
              I_CmsResourceCollector collector = getSettings().getCollector();
              if (collector != null) {
                  // is this the collector for the list view
                  if (collector instanceof I_CmsListResourceCollector) {
                      ((I_CmsListResourceCollector)collector).setPage(getSettings().getExplorerPage());
                  }
                  try {
                      return collector.getResults(getCms());
                  } catch (CmsException e) {
                      if (LOG.isInfoEnabled()) {
                          LOG.info(e);
                      }
                  }
              }
              return Collections.emptyList();
          } else if (VIEW_GALLERY.equals(getSettings().getExplorerMode())) {
              // select galleries
              A_CmsAjaxGallery gallery = A_CmsAjaxGallery.createInstance(getSettings().getGalleryType(), getJsp());
              return gallery.getGalleries();
          } else {
              // default is to return a list of all files in the folder
              try {
                  return getCms().getResourcesInFolder(resource, CmsResourceFilter.ONLY_VISIBLE);
              } catch (CmsException e) {
                  // should usually never happen
                  if (LOG.isInfoEnabled()) {
                      LOG.info(e);
                  }
                  return Collections.emptyList();
              }
          }
      }
docs: Returns a list resources that should be displayed in the
  OpenCms Explorer.<p>
  
  How the list is build depends on the current Workplace settings
  of the user.
  
  @param resource the resource to read the files from (usually a folder)
  @return a list of resources to display