1 package net.sourceforge.phpdt.internal.debug.ui;
3 import java.text.MessageFormat;
4 import java.util.MissingResourceException;
5 import java.util.ResourceBundle;
7 public class PHPDebugUiMessages {
9 private static final String BUNDLE_NAME = PHPDebugUiMessages.class.getName();
10 private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
12 private PHPDebugUiMessages() {}
14 public static String getString(String key) {
16 return RESOURCE_BUNDLE.getString(key);
17 } catch (MissingResourceException e) {
18 return '!' + key + '!';
22 public static String getFormattedString(String key, Object arg) {
23 return MessageFormat.format(getString(key), new Object[] { arg });
26 public static String getFormattedString(String key, Object[] args) {
27 return MessageFormat.format(getString(key), args);