Bug 175788 Set default value doesn't work in Report Parameter[0705]
Description: Set default value doesn't work in Report Parameter[0705] Build number: 2.2.0.v20070228-0630 Steps to reproduce: 1, New a dataset 2, New a report parameter: 'p1' 3, Select "Combo Box" as Display Type 4, Click 'Import Values' button and import some data 5, Choose one selection and Click 'Set as Default' button 6, Click 'OK' to finish the operation 7, Double click and edit p1 Expected result: After step7, the selection is set as Default value Actual result: After step7, the selection is no change, and the warning:"You must set a default value" also occurs Error log:
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ParameterDialog.java
private static final String ERROR_MSG_DUPLICATED_VALUE = Messages.getString( "ParameterDialog.ErrorMessage.DuplicatedValue" ); 
	private static final String ERROR_MSG_DUPLICATED_LABEL = Messages.getString( "ParameterDialog.ErrorMessage.DuplicatedLabel" ); 
	private static final String ERROR_MSG_MISMATCH_DATA_TYPE = Messages.getString( "ParameterDialog.ErrorMessage.MismatchDataType" ); 
	private static final String ERROR_MSG_DUPLICATED_NAME = Messages.getString( "ParameterDialog.ErrorMessage.DuplicatedName" ); 
	private static final String ERROR_MSG_NAME_IS_EMPTY = Messages.getString( "ParameterDialog.ErrorMessage.EmptyName" ); 
	private static final String ERROR_MSG_NO_DEFAULT_VALUE = Messages.getString( "ParameterDialog.ErrorMessage.NoDefaultValue" ); 
	private static final String ERROR_MSG_NO_AVAILABLE_COLUMN = Messages.getString( "ParameterDialog.ErrorMessage.NoAvailableColumn" ); 
	private static final String ERROR_MSG_INVALID_LIST_LIMIT = Messages.getString( "ParameterDialog.ErrorMessage.InvalidListLimit" ); 
	private static final String FLAG_DEFAULT = Messages.getString( "ParameterDialog.Flag.Default" ); 
	private static final String COLUMN_VALUE = Messages.getString( "ParameterDialog.Column.Value" ); 
	private static final String COLUMN_DISPLAY_TEXT = Messages.getString( "ParameterDialog.Column.DisplayText" ); 
	private static final String COLUMN_IS_DEFAULT = Messages.getString( "ParameterDialog.Column.Default" ); 
	private static final String BOOLEAN_TRUE = Messages.getString( "ParameterDialog.Boolean.True" ); 
	private static final String BOOLEAN_FALSE = Messages.getString( "ParameterDialog.Boolean.False" ); 
	private static final String PARAM_CONTROL_LIST = DesignChoiceConstants.PARAM_CONTROL_LIST_BOX
			+ "/List"; 
	private static final String PARAM_CONTROL_COMBO = DesignChoiceConstants.PARAM_CONTROL_LIST_BOX
			+ "/Combo"; 
	private static final String DISPLAY_NAME_CONTROL_LIST = Messages.getString( "ParameterDialog.DisplayLabel.List" ); 
	private static final String DISPLAY_NAME_CONTROL_COMBO = Messages.getString( "ParameterDialog.DisplayLabel.Combo" ); 
	private static final String NONE_DISPLAY_TEXT = Messages.getString( "ParameterDialog.Label.None" ); 
	private static final Image DEFAULT_ICON = ReportPlatformUIImages.getImage( IReportGraphicConstants.ICON_DEFAULT );
	private static final Image ERROR_ICON = ReportPlatformUIImages.getImage( ISharedImages.IMG_OBJS_ERROR_TSK );
	private static final String STANDARD_DATE_TIME_PATTERN = "MM/dd/yyyy hh:mm:ss a"; 	
	private HashMap dirtyProperties = new HashMap( 5 );
	private ArrayList choiceList = new ArrayList( );
	private static final IChoiceSet DATA_TYPE_CHOICE_SET = DEUtil.getMetaDataDictionary( )
			.getElement( ReportDesignConstants.SCALAR_PARAMETER_ELEMENT )
			.getProperty( ScalarParameterHandle.DATA_TYPE_PROP )
			.getAllowedChoices( );