String fmtStr = "";
String fmtStr;
	private void doPreview( String patternStr )	{		String fmtStr = ""; //$NON-NLS-1$		double num = Double.parseDouble( getPreviewText( ) == null ? DEFAULT_PREVIEW_TEXT				: getPreviewText( ) );		if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_GENERAL_NUMBER ) )		{			fmtStr = new NumberFormatter( patternStr ).format( num );			gPreviewLabel.setText( validatedFmtStr( fmtStr ) );			return;		}		else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_CURRENCY ) )		{			fmtStr = new NumberFormatter( patternStr ).format( num );			cPreviewLabel.setText( validatedFmtStr( fmtStr ) );			return;		}		else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_FIXED ) )		{			fmtStr = new NumberFormatter( patternStr ).format( num );			fPreviewLabel.setText( validatedFmtStr( fmtStr ) );			return;		}		else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_PERCENT ) )		{			fmtStr = new NumberFormatter( patternStr ).format( num );			pPreviewLabel.setText( validatedFmtStr( fmtStr ) );			return;		}		else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_SCIENTIFIC ) )		{			fmtStr = new NumberFormatter( patternStr ).format( num );			sPreviewLabel.setText( validatedFmtStr( fmtStr ) );			return;		}		else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_CUSTOM ) )		{			if ( StringUtil.isBlank( previewTextBox.getText( ) ) )			{				fmtStr = new NumberFormatter( patternStr ).format( num );			}			else if ( DEUtil.isValidNumber( previewTextBox.getText( ) ) )			{				fmtStr = new NumberFormatter( patternStr ).format( Double.parseDouble( previewTextBox.getText( ) ) );			}			else			{				fmtStr = PREVIEW_TEXT_INVALID_NUMBER_TO_PREVIEW;			}			cusPreviewLabel.setText( validatedFmtStr( fmtStr ) );			return;		}	}