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
type = DATA_TYPE_CHOICE_SET.findChoiceByDisplayName( dataTypeChooser.getText( ) )
					.getName( );
			type = choice.getName( );
		}
		return type;
	}
	/**
	 * Gets the internal name of the control type from the display name
	 */
	private String getSelectedControlType( )
	{
		String displayText = controlTypeChooser.getText( );
		if ( StringUtil.isBlank( displayText ) )
		{
			return getInputControlType( );
		}
		if ( DISPLAY_NAME_CONTROL_COMBO.equals( displayText ) )
		{
			return PARAM_CONTROL_COMBO;
		}
		if ( DISPLAY_NAME_CONTROL_LIST.equals( displayText ) )
		{
			return PARAM_CONTROL_LIST;
		}
		return CONTROL_TYPE_CHOICE_SET.findChoiceByDisplayName( displayText )
				.getName( );
	}
	private void changeDataType( )
	{
		String type = getSelectedDataType( );