code: public void setHideUnusedButtons(boolean hide) {
  
          m_okButton.setVisible(!hide || (m_okAction != null));
          m_cancelButton.setVisible(!hide || (m_cancelAction != null));
      }
docs: Hides button without a runnable.<p>
  
  @param hide boolean