misc changes
[phpeclipse.git] / net.sourceforge.phpeclipse.phpunit / src / Messages.java
1 import java.util.MissingResourceException;
2 import java.util.ResourceBundle;
3
4 /*
5  * Created on Jul 28, 2004
6  *
7  * To change the template for this generated file go to
8  * Window>Preferences>Java>Code Generation>Code and Comments
9  */
10
11 /**
12  * @author Ali Echihabi
13  *
14  * To change the template for this generated type comment go to
15  * Window>Preferences>Java>Code Generation>Code and Comments
16  */
17 public class Messages {
18
19         private static final String BUNDLE_NAME = "net.sourceforge.phpeclipse.phpunit.test"; //$NON-NLS-1$
20
21         private static final ResourceBundle RESOURCE_BUNDLE =
22                 ResourceBundle.getBundle(BUNDLE_NAME);
23
24         /**
25          * 
26          */
27         private Messages() {
28
29                 // TODO Auto-generated constructor stub
30         }
31         /**
32          * @param key
33          * @return
34          */
35         public static String getString(String key) {
36                 // TODO Auto-generated method stub
37                 try {
38                         return RESOURCE_BUNDLE.getString(key);
39                 } catch (MissingResourceException e) {
40                         return '!' + key + '!';
41                 }
42         }
43 }