code: public void updateDialogTitle() {
  
          String title;
          if ((m_model != null) && (m_model.getGroups().size() > 1)) {
              title = Messages.get().key(
                  Messages.GUI_PUBLISH_DIALOG_TITLE_3,
                  m_publishDialog.getSelectedWorkflow().getNiceName(),
                  String.valueOf(m_model.getGroups().size()),
                  String.valueOf(m_model.getPublishResources().size()));
          } else {
              title = m_publishDialog.getSelectedWorkflow().getNiceName();
          }
          m_publishDialog.setCaption(title);
      }
docs: Updates the dialog title.<p>