code: private void updateDefaultActions(String targetRootPath) {
  
          if (m_actionCombo != null) {
              m_defaultActions.clear();
              String resPath = m_context.getResources().get(0).getRootPath();
              String parentFolder = CmsResource.getParentFolder(resPath);
              if ((DialogMode.copy_and_move == m_dialogMode) && !parentFolder.equals(targetRootPath)) {
                  m_defaultActions.clear();
                  m_defaultActions.add(Action.move);
              } else if (m_context.getResources().size() == 1) {
                  if (m_context.getResources().get(0).isFile()) {
                      m_defaultActions.add(Action.copy_all);
                  } else {
                      m_defaultActions.add(Action.copy_sibling_mixed);
                      if (m_hasContainerPageDefaultFile) {
                          m_defaultActions.clear();
                          m_defaultActions.add(Action.container_page_automatic);
                          m_defaultActions.add(Action.container_page_copy);
                          m_defaultActions.add(Action.container_page_reuse);
                      }
                      CmsResource folder = m_context.getResources().get(0);
                      if (CmsResourceTypeFolderSubSitemap.isSubSitemap(folder)) {
                          m_defaultActions.clear();
                          m_defaultActions.add(Action.sub_sitemap);
                      }
                  }
              } else {
                  m_defaultActions.add(Action.copy_sibling_mixed);
              }
              if (!m_defaultActions.isEmpty()) {
                  m_actionCombo.setValue(m_defaultActions.get(0));
              }
              m_actionCombo.markAsDirty();
          }
      }
docs: Updates the default dialog actions.<p>
  
  @param targetRootPath the target root path