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
12 private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
13 .getBundle(BUNDLE_NAME);
15 private PHPDebugUiMessages() {
18 public static String getString(String key) {
20 return RESOURCE_BUNDLE.getString(key);
21 } catch (MissingResourceException e) {
22 return '!' + key + '!';
26 public static String getFormattedString(String key, Object arg) {
27 return MessageFormat.format(getString(key), new Object[] { arg });
30 public static String getFormattedString(String key, Object[] args) {
31 return MessageFormat.format(getString(key), args);