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
{
			gd.verticalAlignment = GridData.BEGINNING;
		}
		label.setLayoutData( gd );
	}
	private void addCheckBoxListener( final Button checkBox, final String key )
	{
		checkBox.addSelectionListener( new SelectionAdapter( ) {
			public void widgetSelected( SelectionEvent e )
			{
				checkBoxChange( checkBox, key );
			}
		} );
	}
	/**
	 * @param key
	 * @param checkBox
	 * 
	 */
	protected void checkBoxChange( Button checkBox, String key )
	{
		dirtyProperties.put( key, new Boolean( checkBox.getSelection( ) ) );
		if ( CHECKBOX_ALLOW_BLANK.equals( key )
				|| CHECKBOX_ALLOW_NULL.equals( key ) )
		{
			if ( isStatic( ) )
			{
				makeUniqueAndValid( );
				refreshValueTable( );
			}