code: public static void setAttributeChoice(
          I_CmsWidgetService widgetService,
          CmsAttributeValueView valueWidget,
          CmsType attributeType) {
  
          if (attributeType.isChoice()) {
              List<CmsChoiceMenuEntryBean> menuEntries = getChoiceEntries(attributeType, false);
              for (CmsChoiceMenuEntryBean menuEntry : menuEntries) {
                  valueWidget.addChoice(widgetService, menuEntry);
              }
          }
      }
docs: Sets the attribute choices if present.<p>
  
  @param widgetService the widget service to use
  @param valueWidget the value widget
  @param attributeType the attribute type