changed isPHPIdentifierStart, isPHPIdentifierPart
[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
8 import java.util.MissingResourceException;
9 import java.util.ResourceBundle;
10
11 public class PHPActionMessages {
12
13         private static final String RESOURCE_BUNDLE= "net.sourceforge.phpeclipse.actions.PHPActionMessages";//$NON-NLS-1$
14
15         private static ResourceBundle fgResourceBundle= ResourceBundle.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 }