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
private static final String DISPLAY_NAME_CONTROL_LIST = Messages.getString( "ParameterDialog.DisplayLabel.List" ); 
	private static final String DISPLAY_NAME_CONTROL_COMBO = Messages.getString( "ParameterDialog.DisplayLabel.Combo" ); 
	private static final String NONE_DISPLAY_TEXT = Messages.getString( "ParameterDialog.Label.None" ); 
	private static final Image DEFAULT_ICON = ReportPlatformUIImages.getImage( IReportGraphicConstants.ICON_DEFAULT );
	private static final Image ERROR_ICON = ReportPlatformUIImages.getImage( ISharedImages.IMG_OBJS_ERROR_TSK );
	private static final String STANDARD_DATE_TIME_PATTERN = "MM/dd/yyyy hh:mm:ss a"; 
	private HashMap dirtyProperties = new HashMap( 5 );
	private ArrayList choiceList = new ArrayList( );
	private static final IChoiceSet DATA_TYPE_CHOICE_SET = DEUtil.getMetaDataDictionary( )
			.getElement( ReportDesignConstants.SCALAR_PARAMETER_ELEMENT )
			.getProperty( ScalarParameterHandle.DATA_TYPE_PROP )
			.getAllowedChoices( );
	private static final IChoiceSet CONTROL_TYPE_CHOICE_SET = DEUtil.getMetaDataDictionary( )
			.getChoiceSet( DesignChoiceConstants.CHOICE_PARAM_CONTROL );
	private ScalarParameterHandle inputParameter;
	private boolean loading = true;
	private Text nameEditor, promptTextEditor, helpTextEditor, formatField;
	
	private Label promptMessageLine;
	
	private CLabel errorMessageLine;
	
	private Button isRequired, doNotEcho, isHidden, needSort, distinct;
	
	private Button importValue, changeDefault, changeFormat, createDataSet;
	
	private Button dynamicRadio, staticRadio;
	
	private Combo dataTypeChooser, controlTypeChooser, defaultValueChooser;