ScalarParameterHandle sph = designFactory.newScalarParameter("srt"); sph.setIsRequired(true); //sph.setAllowNull(true); //sph.setAllowBlank(true); sph.setValueType(DesignChoiceConstants.PARAM_VALUE_TYPE_STATIC); sph.setDataType(DesignChoiceConstants.PARAM_TYPE_STRING); designHandle.getParameters().add(sph);