selectedParameter.setDataType( dataType.findChoiceByDisplayName( dataTypeChooser.getText( ) ) .getName( ) );
String newControlType = getSelectedDisplayType( ); if ( PARAM_CONTROL_COMBO.equals( newControlType ) ) { newControlType = DesignChoiceConstants.PARAM_CONTROL_LIST_BOX; selectedParameter.setMustMatch( true ); } else if ( PARAM_CONTROL_LIST.equals( newControlType ) ) { newControlType = DesignChoiceConstants.PARAM_CONTROL_LIST_BOX; selectedParameter.setMustMatch( false ); } else { selectedParameter.setProperty( ScalarParameterHandle.MUCH_MATCH_PROP, null ); } selectedParameter.setControlType( newControlType );
			public void widgetSelected( SelectionEvent e )			{				if ( selectedParameter != null						&& selectedParameter != newParameter )				{					changeDataType( dataType.findChoiceByDisplayName( dataTypeChooser.getText( ) )							.getName( ) );					try					{						selectedParameter.setDataType( dataType.findChoiceByDisplayName( dataTypeChooser.getText( ) )								.getName( ) );					}					catch ( SemanticException e1 )					{						ExceptionHandler.handle( e1 );					}				}			}