pattern.setPattern( formatCode.getText( ) );
pattern.setPattern( formatCodeBox.getText( ) );
	private void setFmtPatternFromControls( )	{		if ( categoryPatternMaps == null )		{			return;		}		String category = getCategory4DisplayName( typeChoicer.getText( ) );		if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_CURRENCY ) )		{			FormatCurrencyNumPattern pattern = (FormatCurrencyNumPattern) categoryPatternMaps.get( category );			String places = cPlacesChoice.getText( );			pattern.setDecPlaces( DEUtil.isValidInteger( places ) ? Integer.parseInt( places )					: 0 );			pattern.setUseSep( cUseSep.getSelection( ) );			pattern.setSymbol( cSymbolChoice.getText( ) );			pattern.setSymPos( cSymPosChoice.getText( ) );			pattern.setUseBracket( cNegNumChoice.getSelectionIndex( ) == 1 );		}		else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_FIXED ) )		{			FormatFixedNumPattern pattern = (FormatFixedNumPattern) categoryPatternMaps.get( category );			String places = fPlacesChoice.getText( );			pattern.setDecPlaces( DEUtil.isValidInteger( places ) ? Integer.parseInt( places )					: 0 );			pattern.setUseSep( fUseSep.getSelection( ) );			pattern.setUseZero( fUseZero.getSelection( ) );			pattern.setUseBracket( fNegNumChoice.getSelectionIndex( ) == 1 );		}		else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_PERCENT ) )		{			FormatPercentNumPattern pattern = (FormatPercentNumPattern) categoryPatternMaps.get( category );			String places = pPlacesChoice.getText( );			pattern.setDecPlaces( DEUtil.isValidInteger( places ) ? Integer.parseInt( places )					: 0 );			pattern.setUseSep( pUseSep.getSelection( ) );			pattern.setUseZero( pUseZero.getSelection( ) );			pattern.setSymPos( pSymPosChoice.getText( ) );			pattern.setUseBracket( pNegNumChoice.getSelectionIndex( ) == 1 );		}		else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_SCIENTIFIC ) )		{			FormatScientificNumPattern pattern = (FormatScientificNumPattern) categoryPatternMaps.get( category );			String places = sPlacesChoice.getText( );			pattern.setDecPlaces( DEUtil.isValidInteger( places ) ? Integer.parseInt( places )					: 0 );		}		else if ( category.equals( DesignChoiceConstants.NUMBER_FORMAT_TYPE_CUSTOM ) )		{			FormatCustomNumPattern pattern = (FormatCustomNumPattern) categoryPatternMaps.get( category );			pattern.setPattern( formatCode.getText( ) );		}		return;	}