View Javadoc
1 package net.sourceforge.pmd.swingui; 2 3 import java.text.MessageFormat; 4 import java.util.ResourceBundle; 5 6 /*** 7 * 8 * @author Donald A. Leckie 9 * @since September 9, 2002 10 * @version $Revision: 1.5 $, $Date: 2003/03/14 19:04:07 $ 11 */ 12 public class Resources { 13 private static ResourceBundle RESOURCES = ResourceBundle.getBundle("net.sourceforge.pmd.swingui.pmdViewer"); 14 15 /*** 16 ********************************************************************************* 17 * 18 * @param name 19 * 20 * @return 21 */ 22 public static final String getString(String name) { 23 return RESOURCES.getString(name); 24 } 25 26 /*** 27 ********************************************************************************* 28 * 29 * @param name 30 * @param parameters 31 * 32 * @return 33 */ 34 public static final String getString(String name, String[] parameters) { 35 String template = RESOURCES.getString(name); 36 String message = MessageFormat.format(template, parameters); 37 38 return message; 39 } 40 }

This page was automatically generated by Maven