First commit in a looooooong time. I had connectivity problems.
[phpeclipse.git] / net.sourceforge.phpeclipse.phpunit / src / Messages.java
diff --git a/net.sourceforge.phpeclipse.phpunit/src/Messages.java b/net.sourceforge.phpeclipse.phpunit/src/Messages.java
new file mode 100644 (file)
index 0000000..d716c94
--- /dev/null
@@ -0,0 +1,43 @@
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+/*
+ * Created on Jul 28, 2004
+ *
+ * To change the template for this generated file go to
+ * Window>Preferences>Java>Code Generation>Code and Comments
+ */
+
+/**
+ * @author Ali Echihabi
+ *
+ * To change the template for this generated type comment go to
+ * Window>Preferences>Java>Code Generation>Code and Comments
+ */
+public class Messages {
+
+       private static final String BUNDLE_NAME = "net.sourceforge.phpeclipse.phpunit.test"; //$NON-NLS-1$
+
+       private static final ResourceBundle RESOURCE_BUNDLE =
+               ResourceBundle.getBundle(BUNDLE_NAME);
+
+       /**
+        * 
+        */
+       private Messages() {
+
+               // 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 + '!';
+               }
+       }
+}