code: @Override
      protected void defineWidgets() {
  
          List selectOptions = getModulesFromServer();
  
          if (selectOptions.isEmpty()) {
              // no import modules available, display message
              addWidget(
                  new CmsWidgetDialogParameter(
                      this,
                      "moduleupload",
                      PAGES[0],
                      new CmsDisplayWidget(key(Messages.GUI_MODULES_IMPORT_NOT_AVAILABLE_0))));
          } else {
              // add the file select box widget
              addWidget(new CmsWidgetDialogParameter(this, "moduleupload", PAGES[0], new CmsSelectWidget(selectOptions)));
          }
      }
docs: Creates the list of widgets for this dialog.<p>