code: public void displayResourceInfo(List<CmsResource> resources, String messageKey) {
  
          m_infoResources = Lists.newArrayList(resources);
          if (m_infoComponent != null) {
              m_mainPanel.removeComponent(m_infoComponent);
              m_infoComponent = null;
          }
          if ((resources != null) && !resources.isEmpty()) {
              if (resources.size() == 1) {
                  m_infoComponent = new CmsResourceInfo(resources.get(0));
                  m_mainPanel.addComponent(m_infoComponent, 0);
              } else {
                  m_infoComponent = createResourceListPanel(
                      messageKey == null ? null : Messages.get().getBundle(A_CmsUI.get().getLocale()).key(messageKey),
                      resources);
                  m_mainPanel.addComponent(m_infoComponent, 0);
                  m_mainPanel.setExpandRatio(m_infoComponent, 1);
  
                  // reset expand ratio of the content panel
                  m_contentPanel.setSizeUndefined();
                  m_contentPanel.setWidth("100%");
                  m_mainPanel.setExpandRatio(m_contentPanel, 0);
              }
  
          }
      }
docs: Display the resource indos panel with panel message.<p>
  
  @param resources to show info for
  @param messageKey of the panel