code: public void setShowResources(boolean showResources, String tooManyResourcesMessage) {
  
          m_showResources = showResources;
          m_checkboxRelated.setEnabled(showResources);
          m_checkboxRelated.setChecked(showResources && m_publishDialog.getPublishOptions().isIncludeRelated());
          m_checkboxSiblings.setEnabled(showResources);
          m_checkboxSiblings.setChecked(showResources && m_publishDialog.getPublishOptions().isIncludeSiblings());
          m_groupPanelContainer.setVisible(showResources);
          m_tooManyResources.setVisible(!showResources);
          m_tooManyResources.setText(tooManyResourcesMessage);
          m_selectAll.setVisible(showResources);
          enableActions(true);
          if (!showResources) {
              m_checkboxProblems.setVisible(false);
              m_noResources.setVisible(false);
              m_scrollPanel.setVisible(false);
          } else {
              addMoreListItems();
              showProblemCount(m_model.countProblems());
              onChangePublishSelection();
          }
      }
docs: Sets the mode to either show resources, or only show a "too many resources" message.<p>
  In the latter case, the check boxes for the siblings/related resources will be deactivated.<p>
  
  @param showResources true if the resource list should be shown, false if only the given message should be shown
  @param tooManyResourcesMessage the message to show if there are too many resources to display