code: void setOkButtonEnabled() {
  
          m_ok.setEnabled(true);
          m_ok.setCaption(CmsVaadinUtils.getMessageText(org.opencms.workplace.Messages.GUI_DIALOG_BUTTON_CLOSE_0));
          m_ok.removeClickListener(m_okClickListener);
          m_ok.addClickListener(new ClickListener() {
  
              private static final long serialVersionUID = 5637556711524961424L;
  
              public void buttonClick(ClickEvent event) {
  
                  closeDailog(true);
              }
          });
      }
docs: Enables the ok button after finishing report thread.<p>