Bug 188619 GUIException when change parameter from radio to text box[0705]
Description: GUIException when change parameter from radio to text box Build number:2.2.0.v20070523 Steps to reproduce: 1. New a report parameter, integer, radio button, add value 1 and set it as default value. 2. Save the report. 3. Edit the parameter, change display type from radio button to text box. 4. click OK. Expected result: No exception and change is accepted. Actual result: Widget is disposed Plug-in Provider:Eclipse.org Plug-in Name:BIRT Designer UI Plug-in ID:org.eclipse.birt.report.designer.ui Version:2.2.0.v20070523-0630 Error Code:Error.GUIException.invokedBySWTException Error Message:Widget is disposed
UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/ParameterDialog.java
engine = DataEngine.newDataEngine( DataEngineContext.newInstance( DataEngineContext.DIRECT_PRESENTATION,
					null,
					null,
					null ) );
			BaseQueryDefinition query = (BaseQueryDefinition) DataUtil.getPreparedQuery( engine,
					getDataSetHandle( ) )
					.getReportQueryDefn( );
			ScriptExpression expression = new ScriptExpression( queryExpr );
			String columnBindingName = "_$_COLUMNBINDINGNAME_$_";
			query.addResultSetExpression( columnBindingName, expression );
			
			IPreparedQuery preparedQuery = engine.prepare( (IQueryDefinition) query );
			IQueryResults results = preparedQuery.execute( null );
			if ( results != null )
			{
				IResultIterator iter = results.getResultIterator( );
				if ( iter != null )
				{
					DateFormatter formatter = new DateFormatter( STANDARD_DATE_TIME_PATTERN,
							ULocale.US );
					while ( iter.next( ) )
					{
						String result = null;
						if ( DesignChoiceConstants.COLUMN_DATA_TYPE_DATETIME.equals( getSelectedDataType( ) ) )
						{
							result = formatter.format( iter.getDate( columnBindingName ) );
						}
						else
						{
							result = iter.getString( columnBindingName );