code: void submit() {
  
          try {
              CmsProject project = m_context.getCms().readProject((CmsUUID)m_projectComboBox.getValue());
              if (!m_context.getCms().getRequestContext().getCurrentProject().equals(project)) {
                  A_CmsUI.get().changeProject(project);
              } else {
                  project = null;
              }
              String siteRoot = (String)m_siteComboBox.getValue();
              if (!m_context.getCms().getRequestContext().getSiteRoot().equals(siteRoot)) {
                  A_CmsUI.get().changeSite(siteRoot);
              } else {
                  siteRoot = null;
              }
              if ((siteRoot != null) && CmsFileExplorerConfiguration.APP_ID.equals(m_context.getAppId())) {
                  I_CmsWorkplaceAppConfiguration editorConf = OpenCms.getWorkplaceAppManager().getAppConfiguration(
                      CmsPageEditorConfiguration.APP_ID);
                  if (editorConf.getVisibility(m_context.getCms()).isActive()) {
                      ((I_CmsHasAppLaunchCommand)editorConf).getAppLaunchCommand().run();
                      return;
                  }
              }
              m_context.finish(project, siteRoot);
          } catch (CmsException e) {
              m_context.error(e);
          }
      }
docs: Submits the dialog action.<p>