Fixed Bug<a href="http://sourceforge.net/tracker/?func=detail&atid=484801&aid=1145683...
[phpeclipse.git] / net.sourceforge.phpeclipse.launching / src / net / sourceforge / phpdt / internal / launching / PHPLaunchingMessages.java
1 package net.sourceforge.phpdt.internal.launching;
2
3 import java.util.MissingResourceException;
4 import java.util.ResourceBundle;
5
6 public class PHPLaunchingMessages {
7
8         private static final String BUNDLE_NAME = PHPLaunchingMessages.class.getName();
9  
10         private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
11
12         private PHPLaunchingMessages() {}
13
14         public static String getString(String key) {
15                 try {
16                         return RESOURCE_BUNDLE.getString(key);
17                 } catch (MissingResourceException e) {
18                         return '!' + key + '!';
19                 }
20         }
21 }