Better event handling for browser preview refreshs in Wikipedia plugin
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / Messages.java
1 package net.sourceforge.phpdt.sql;
2
3 import java.util.MissingResourceException;
4 import java.util.ResourceBundle;
5
6 public class Messages {
7
8         private static final String BUNDLE_NAME = "net.sourceforge.phpdt.sql.PHPEclipseSQLResources"; //$NON-NLS-1$
9
10         private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
11
12         private Messages() {
13         }
14
15         public static String getString(String key) {
16                 try {
17                         return RESOURCE_BUNDLE.getString(key);
18                 } catch (MissingResourceException e) {
19                         return '!' + key + '!';
20                 }
21         }
22 }