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
valueTable.setColumnProperties( columns );
		valueTable.setContentProvider( contentProvider );
		valueTable.setLabelProvider( labelProvider );
		tableArea.setInput( choiceList );
		valueTable.addSelectionChangedListener( new ISelectionChangedListener( ) {
			public void selectionChanged( SelectionChangedEvent event )
			{
				updateTableButtons( );
			}
		} );
		Composite buttonBar = new Composite( tableAreaComposite, SWT.NONE );
		buttonBar.setLayout( UIUtil.createGridLayoutWithoutMargin( 4, false ) );
		buttonBar.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
		importValue = new Button( buttonBar, SWT.PUSH );
		importValue.setText( BUTTON_LABEL_IMPORT );
		setButtonLayoutData( importValue );
		
		importValue.setEnabled( !inputParameter.getModuleHandle( )
				.getVisibleDataSets( )
				.isEmpty( ) );
		importValue.addSelectionListener( new SelectionAdapter( ) {
			public void widgetSelected( SelectionEvent e )
			{
				String type = getSelectedDataType( );
				ImportValueDialog dialog = new ImportValueDialog( type );
				if ( dialog.open( ) == OK )
				{
					String[] importValues = (String[]) dialog.getResult( );
					for ( int i = 0; i < importValues.length; i++ )
					{