return;
	private void updatePreview( )	{		markDirty( hasLoaded );		String gText;		if ( getPreviewText( ) == null )		{			gText = DEFAULT_PREVIEW_TEXT;		}		else		{			gText = getPreviewText( );		}		String category = getCategory4DisplayName( typeChoicer.getText( ) );		setCategory( category );		if ( DesignChoiceConstants.STRING_FORMAT_TYPE_UNFORMATTED.equals( category ) )		{			String pattern = getPatternForCategory( category );			generalPreviewLabel.setText( gText );			setPattern( pattern );			return;		}		else if ( DesignChoiceConstants.STRING_FORMAT_TYPE_UPPERCASE.equals( category ) )		{			String pattern = getPatternForCategory( category );			String fmtStr = new StringFormatter( pattern, DEFAULT_LOCALE ).format( gText );			generalPreviewLabel.setText( validatedFmtStr( fmtStr ) );			setPattern( pattern );			return;		}		else if ( DesignChoiceConstants.STRING_FORMAT_TYPE_LOWERCASE.equals( category ) )		{			String pattern = getPatternForCategory( category );			String fmtStr = new StringFormatter( pattern, DEFAULT_LOCALE ).format( gText );			generalPreviewLabel.setText( validatedFmtStr( fmtStr ) );			setPattern( pattern );			return;		}		else if ( DesignChoiceConstants.STRING_FORMAT_TYPE_ZIP_CODE.equals( category ) )		{			String pattern = getPatternForCategory( category );			String fmtStr = new StringFormatter( pattern, DEFAULT_LOCALE ).format( SAMPLE_TEXT_ZIP_CODE );			generalPreviewLabel.setText( validatedFmtStr( fmtStr ) );			setPattern( pattern );			return;		}		else if ( DesignChoiceConstants.STRING_FORMAT_TYPE_ZIP_CODE_4.equals( category ) )		{			String pattern = getPatternForCategory( category );			String fmtStr = new StringFormatter( pattern, DEFAULT_LOCALE ).format( SAMPLE_TEXT_ZIP_C0DE4 );			generalPreviewLabel.setText( validatedFmtStr( fmtStr ) );			setPattern( pattern );			return;		}		else if ( DesignChoiceConstants.STRING_FORMAT_TYPE_PHONE_NUMBER.equals( category ) )		{			String pattern = getPatternForCategory( category );			String fmtStr = new StringFormatter( pattern, DEFAULT_LOCALE ).format( SAMPLE_TEXT_PHONE_NUMBER );			generalPreviewLabel.setText( validatedFmtStr( fmtStr ) );			setPattern( pattern );			return;		}		else if ( DesignChoiceConstants.STRING_FORMAT_TYPE_SOCIAL_SECURITY_NUMBER.equals( category ) )		{			String pattern = getPatternForCategory( category );			gText = SAMPLE_TEXT_SOCIAL_SECURITY_NUMBER;			String fmtStr = new StringFormatter( pattern, DEFAULT_LOCALE ).format( SAMPLE_TEXT_SOCIAL_SECURITY_NUMBER );			generalPreviewLabel.setText( validatedFmtStr( fmtStr ) );			setPattern( pattern );			return;		}		else if ( DesignChoiceConstants.STRING_FORMAT_TYPE_CUSTOM.equals( category ) )		{			String pattern = formatCode.getText( );			String fmtStr;			if ( StringUtil.isBlank( previewTextBox.getText( ) ) )			{				fmtStr = new StringFormatter( pattern, DEFAULT_LOCALE ).format( gText );			}			else			{				fmtStr = new StringFormatter( pattern, DEFAULT_LOCALE ).format( previewTextBox.getText( ) );			}			cPreviewLabel.setText( validatedFmtStr( fmtStr ) );			setPattern( pattern );			return;		}	}