String category = ( (TableItem) e.item ).getText( FORMAT_TYPE_INDEX ); String pattern = ""; if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_CURRENCY ) ) { pattern = "\u00A4###,##0.00"; } else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_FIXED ) ) { pattern = "#0.00"; } else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_PERCENT ) ) { pattern = "0.00%"; } else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_SCIENTIFIC ) ) { pattern = "0.00E00"; }
String displayName = ( (TableItem) e.item ).getText( FORMAT_TYPE_INDEX );  String category = ChoiceSetFactory.getPropValue( ReportDesignConstants.STYLE_ELEMENT, Style.NUMBER_FORMAT_PROP, displayName );  String pattern = getPatternForCategory( category );
			public void widgetSelected( SelectionEvent e )			{				String category = ( (TableItem) e.item ).getText( FORMAT_TYPE_INDEX );				String pattern = ""; //$NON-NLS-1$				if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_CURRENCY ) )				{					pattern = "\u00A4###,##0.00"; //$NON-NLS-1$				}				else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_FIXED ) )				{					pattern = "#0.00"; //$NON-NLS-1$				}				else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_PERCENT ) )				{					pattern = "0.00%"; //$NON-NLS-1$				}				else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_SCIENTIFIC ) )				{					pattern = "0.00E00"; //$NON-NLS-1$				}				formatCode.setText( pattern );				updatePreview( );			}