if ( newValue == null ) { return true; } if ( DesignChoiceConstants.PARAM_TYPE_DECIMAL.equals( getSelectedDataType( ) ) ) { try { if ( DataTypeUtil.toBigDecimal( value ) .compareTo( DataTypeUtil.toBigDecimal( newValue ) ) == 0 ) { return true; } } catch ( BirtException e ) { } } else if ( DesignChoiceConstants.PARAM_TYPE_FLOAT.equals( getSelectedDataType( ) ) ) { try { if ( DataTypeUtil.toDouble( value ) .compareTo( DataTypeUtil.toDouble( newValue ) ) == 0 ) { return true; } } catch ( BirtException e ) { } } else { if ( value.equals( newValue ) ) { return true; } }
return true;
	private boolean containValue( SelectionChoice selectedChoice,			String newValue, String property )	{		for ( Iterator iter = choiceList.iterator( ); iter.hasNext( ); )		{			SelectionChoice choice = (SelectionChoice) iter.next( );			if ( !choice.equals( selectedChoice ) )			{				String value = null;				if ( COLUMN_VALUE.equals( property ) )				{					value = choice.getValue( );				}				else if ( COLUMN_DISPLAY_TEXT.equals( property ) )				{					value = choice.getLabel( );					if ( value == null )					{						value = choice.getValue( );					}					if ( value == null )					{						value = LABEL_NULL;					}				}				if ( !( value == null ^ newValue == null ) )				{					if ( newValue == null )					{						return true;					}					if ( DesignChoiceConstants.PARAM_TYPE_DECIMAL.equals( getSelectedDataType( ) ) )					{						try						{							if ( DataTypeUtil.toBigDecimal( value )									.compareTo( DataTypeUtil.toBigDecimal( newValue ) ) == 0 )							{								return true;							}						}						catch ( BirtException e )						{						}					}					else if ( DesignChoiceConstants.PARAM_TYPE_FLOAT.equals( getSelectedDataType( ) ) )					{						try						{							if ( DataTypeUtil.toDouble( value )									.compareTo( DataTypeUtil.toDouble( newValue ) ) == 0 )							{								return true;							}						}						catch ( BirtException e )						{						}					}					else					{						if ( value.equals( newValue ) )						{							return true;						}					}				}			}		}		return false;	}