initial nl support for phphelp plugin
[phpeclipse.git] / net.sourceforge.phpeclipse.phphelp / src / net / sourceforge / phpdt / phphelp / PHPHelpPreferenceMessages.java
diff --git a/net.sourceforge.phpeclipse.phphelp/src/net/sourceforge/phpdt/phphelp/PHPHelpPreferenceMessages.java b/net.sourceforge.phpeclipse.phphelp/src/net/sourceforge/phpdt/phphelp/PHPHelpPreferenceMessages.java
new file mode 100644 (file)
index 0000000..255ef1d
--- /dev/null
@@ -0,0 +1,36 @@
+package net.sourceforge.phpdt.phphelp;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+/**
+ * @author jsurfer
+ *
+ * 
+ */
+public class PHPHelpPreferenceMessages {
+
+  private static final String BUNDLE_NAME = "net.sourceforge.phpdt.phphelp.PHPHelpPreferenceMessages"; //$NON-NLS-1$
+
+  private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
+
+  /**
+   * 
+   */
+  private PHPHelpPreferenceMessages() {
+
+    // TODO Auto-generated constructor stub
+  }
+  /**
+   * @param key
+   * @return
+   */
+  public static String getString(String key) {
+    // TODO Auto-generated method stub
+    try {
+      return RESOURCE_BUNDLE.getString(key);
+    } catch (MissingResourceException e) {
+      return '!' + key + '!';
+    }
+  }
+}