Matched the id to the module name.
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / actions / PHPActionMessages.java
1 /*
2  * (c) Copyright Improve S.A., 2002.
3  * All Rights Reserved.
4  */
5 package net.sourceforge.phpeclipse.actions;
6
7 import java.util.MissingResourceException;
8 import java.util.ResourceBundle;
9
10 public class PHPActionMessages {
11
12         private static final String RESOURCE_BUNDLE = "net.sourceforge.phpeclipse.actions.PHPActionMessages";//$NON-NLS-1$
13
14         private static ResourceBundle fgResourceBundle = ResourceBundle
15                         .getBundle(RESOURCE_BUNDLE);
16
17         private PHPActionMessages() {
18         }
19
20         public static String getString(String key) {
21                 try {
22                         return fgResourceBundle.getString(key);
23                 } catch (MissingResourceException e) {
24                         return "!" + key + "!";//$NON-NLS-2$ //$NON-NLS-1$
25                 }
26         }
27
28         public static ResourceBundle getResourceBundle() {
29                 return fgResourceBundle;
30         }
31 }