modification to debug on a remote server
[phpeclipse.git] / net.sourceforge.phpeclipse.phphelp / src / net / sourceforge / phpdt / phphelp / PHPHelpPreferenceMessages.java
1 package net.sourceforge.phpdt.phphelp;
2
3 import java.util.MissingResourceException;
4 import java.util.ResourceBundle;
5
6 /**
7  * @author jsurfer
8  *
9  * 
10  */
11 public class PHPHelpPreferenceMessages {
12
13   private static final String BUNDLE_NAME = "net.sourceforge.phpdt.phphelp.PHPHelpPreferenceMessages"; //$NON-NLS-1$
14
15   private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
16
17   /**
18    * 
19    */
20   private PHPHelpPreferenceMessages() {
21
22     // TODO Auto-generated constructor stub
23   }
24   /**
25    * @param key
26    * @return
27    */
28   public static String getString(String key) {
29     // TODO Auto-generated method stub
30     try {
31       return RESOURCE_BUNDLE.getString(key);
32     } catch (MissingResourceException e) {
33       return '!' + key + '!';
34     }
35   }
36 }