Bug 153523 OK button in parameter dialog is enabled without default value in combo-box
Description: OK button in parameter dialog is enabled without default value in combo-box Steps to reproduce: 1. New a report parameter, combo-box. 2. Click New button, input abc as value, click OK 3. Set abc as default value and close Edit Parameter dialog. 4. New a data source and dataset 5. Edit the parameter, remove abc value and import values from dataset Expected result: OK button is disabled for there is no default value. Actual result: OK button is enabled.
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ParameterDialog.java
}
		String originalSelection = columnChooser.getText( );
		columnChooser.removeAll( );
		for ( Iterator iter = columnList.iterator( ); iter.hasNext( ); )
		{
			ResultSetColumnHandle cachedColumn = (ResultSetColumnHandle) iter.next( );
			if ( matchDataType( cachedColumn ) )
			{
				columnChooser.add( cachedColumn.getColumnName( ) );
			}
		}
		if ( columnChooser.indexOf( originalSelection ) != -1 )
		{
			columnChooser.setText( originalSelection );
		}
		else if ( columnChooser.getItemCount( ) > 0 )
		{
			columnChooser.select( 0 );
		}
		columnChooser.setEnabled( columnChooser.getItemCount( ) > 0 );
		updateMessageLine( );
	}
	private boolean matchDataType( ResultSetColumnHandle column )
	{
		String type = getSelectedDataType( );
		if ( type.equals( DesignChoiceConstants.PARAM_TYPE_STRING )
				|| DesignChoiceConstants.COLUMN_DATA_TYPE_ANY.equals( column.getDataType( ) ) )
		{
			return true;
		}