code: private void updateCurrencyFormats(ProjectProperties properties, char decimalSeparator, char thousandsSeparator)
     {
        String prefix = "";
        String suffix = "";
        String currencySymbol = quoteFormatCharacters(properties.getCurrencySymbol());
  
        switch (properties.getSymbolPosition())
        {
           case AFTER:
           {
              suffix = currencySymbol;
              break;
           }
  
           case BEFORE:
           {
              prefix = currencySymbol;
              break;
           }
  
           case AFTER_WITH_SPACE:
           {
              suffix = " " + currencySymbol;
              break;
           }
  
           case BEFORE_WITH_SPACE:
           {
              prefix = currencySymbol + " ";
              break;
           }
        }
  
        StringBuilder pattern = new StringBuilder(prefix);
        pattern.append("#0");
  
        int digits = properties.getCurrencyDigits().intValue();
        if (digits > 0)
        {
           pattern.append('.');
           for (int i = 0; i < digits; i++)
           {
              pattern.append("0");
           }
        }
  
        pattern.append(suffix);
  
        String primaryPattern = pattern.toString();
  
        String[] alternativePatterns = new String[7];
        alternativePatterns[0] = primaryPattern + ";(" + primaryPattern + ")";
        pattern.insert(prefix.length(), "#,#");
        String secondaryPattern = pattern.toString();
        alternativePatterns[1] = secondaryPattern;
        alternativePatterns[2] = secondaryPattern + ";(" + secondaryPattern + ")";
  
        pattern.setLength(0);
        pattern.append("#0");
  
        if (digits > 0)
        {
           pattern.append('.');
           for (int i = 0; i < digits; i++)
           {
              pattern.append("0");
           }
        }
  
        String noSymbolPrimaryPattern = pattern.toString();
        alternativePatterns[3] = noSymbolPrimaryPattern;
        alternativePatterns[4] = noSymbolPrimaryPattern + ";(" + noSymbolPrimaryPattern + ")";
        pattern.insert(0, "#,#");
        String noSymbolSecondaryPattern = pattern.toString();
        alternativePatterns[5] = noSymbolSecondaryPattern;
        alternativePatterns[6] = noSymbolSecondaryPattern + ";(" + noSymbolSecondaryPattern + ")";
  
        m_currencyFormat.applyPattern(primaryPattern, alternativePatterns, decimalSeparator, thousandsSeparator);
     }
docs: Update the currency format.
  
  @param properties project properties
  @param decimalSeparator decimal separator
  @param thousandsSeparator thousands separator