IChoiceSet choiceSet = getFormatChoiceSet( getSelectedDataType( ) );
IChoiceSet choiceSet = getFormatChoiceSet( type );
	private void updateFormatField( )	{		String displayFormat;		String previewString;		String type = getSelectedDataType( );		IChoiceSet choiceSet = getFormatChoiceSet( getSelectedDataType( ) );		if ( choiceSet == null )		{// Boolean type;			displayFormat = DEUtil.getMetaDataDictionary( )					.getChoiceSet( DesignChoiceConstants.CHOICE_STRING_FORMAT_TYPE )					.findChoice( DesignChoiceConstants.STRING_FORMAT_TYPE_UNFORMATTED )					.getDisplayName( );			previewString = "True"; //$NON-NLS-1$		}		else		{			displayFormat = choiceSet.findChoice( formatCategroy )					.getDisplayName( );			if ( defaultValue != null )			{				previewString = format( defaultValue );			}			else			{				if ( formatCategroy == DesignChoiceConstants.STRING_FORMAT_TYPE_CUSTOM						|| formatCategroy == DesignChoiceConstants.NUMBER_FORMAT_TYPE_CUSTOM						|| formatCategroy == DesignChoiceConstants.DATETIEM_FORMAT_TYPE_CUSTOM )				{					displayFormat += ": " + formatPattern; //$NON-NLS-1$				}				if ( type.equals( DesignChoiceConstants.PARAM_TYPE_DATETIME ) )				{					previewString = new DateFormatter( DesignChoiceConstants.DATETIEM_FORMAT_TYPE_CUSTOM.equals( formatCategroy ) ? formatPattern							: formatCategroy,							ULocale.getDefault( ) ).format( new Date( ) );				}				else if ( type.equals( DesignChoiceConstants.PARAM_TYPE_STRING ) )				{					previewString = new StringFormatter( formatCategroy != DesignChoiceConstants.STRING_FORMAT_TYPE_CUSTOM ? formatCategroy							: formatPattern,							ULocale.getDefault( ) ).format( Messages.getString( "ParameterDialog.Label.Sample" ) ); //$NON-NLS-1$				}				else				{					previewString = new NumberFormatter( formatCategroy != DesignChoiceConstants.NUMBER_FORMAT_TYPE_CUSTOM ? formatCategroy							: formatPattern,							ULocale.getDefault( ) ).format( 123456789.01234 );				}			}		}		formatField.setText( displayFormat );		previewLabel.setText( convertNullString( previewString ) );		changeFormat.setEnabled( choiceSet != null );	}