code: public static SelectOptions getViewSelectOptions(CmsObject cms, String value) {
  
          Locale locale = OpenCms.getWorkplaceManager().getWorkplaceLocale(cms);
  
          List<String> options = new ArrayList<String>();
          List<String> values = new ArrayList<String>();
          int selectedIndex = 0;
  
          List<I_CmsWorkplaceAppConfiguration> apps = OpenCms.getWorkplaceAppManager().getDefaultQuickLaunchConfigurations();
  
          for (I_CmsWorkplaceAppConfiguration app : apps) {
              if (OpenCms.getRoleManager().hasRole(
                  cms,
                  cms.getRequestContext().getCurrentUser().getName(),
                  app.getRequiredRole())) {
                  values.add(app.getId());
                  options.add(app.getName(locale));
              }
          }
  
          SelectOptions optionBean = new SelectOptions(options, values, selectedIndex);
          return optionBean;
      }
docs: Gets the select options for the view selector.<p>
  
  @param cms the CMS context
  @param value the current value
  @return the select options