code: private List<CmsSelectWidgetOption> getProjects() {
  
          List<CmsSelectWidgetOption> projects = new ArrayList<CmsSelectWidgetOption>();
  
          try {
              String defProject = null;
              if ((m_user != null) && CmsStringUtil.isNotEmptyOrWhitespaceOnly(m_user.getName())) {
                  defProject = new CmsUserSettings(m_user).getStartProject();
              }
              if (CmsStringUtil.isEmptyOrWhitespaceOnly(defProject)) {
                  defProject = getParamOufqn() + OpenCms.getWorkplaceManager().getDefaultUserSettings().getStartProject();
              }
              if (CmsStringUtil.isEmptyOrWhitespaceOnly(defProject)) {
                  defProject = getCms().getRequestContext().getCurrentProject().getName();
              }
  
              List<CmsProject> projectsList;
              projectsList = OpenCms.getOrgUnitManager().getAllAccessibleProjects(getCms(), getParamOufqn(), false);
  
              Iterator<CmsProject> itProjects = projectsList.iterator();
  
              while (itProjects.hasNext()) {
                  boolean selected = false;
                  CmsProject project = itProjects.next();
  
                  String projectName = project.getName();
                  if (projectName.equals(defProject)) {
                      selected = true;
                  }
                  if (isNewUser()) {
                      projects.add(
                          new CmsSelectWidgetOption(project.getSimpleName(), selected, project.getSimpleName(), null));
                  } else {
                      projects.add(new CmsSelectWidgetOption(project.getName(), selected, project.getSimpleName(), null));
                  }
              }
  
          } catch (CmsException e) {
              if (LOG.isErrorEnabled()) {
                  LOG.error(e.getLocalizedMessage(), e);
              }
          }
  
          return projects;
      }
docs: Returns a list of options for the project selector.<p>
  
  @return a list of options for the project selector