code: protected void updateDialog() {
  
          if (m_uploadDialog != null) {
              if ((m_closeHandler != null)) {
                  if (m_closeHandlerRegistration != null) {
                      m_closeHandlerRegistration.removeHandler();
                  }
                  m_closeHandlerRegistration = m_uploadDialog.addCloseHandler(m_closeHandler);
              }
              if ((m_targetFolder != null)) {
                  m_uploadDialog.setTargetFolder(m_targetFolder);
              }
              m_uploadDialog.setIsTargetRootPath(m_isTargetRootPath);
          }
      }
docs: Updates the dialog with the current close handler and target folder.<p>