HTML manual changes per #379.
[phpeclipse.git] / net.sourceforge.phpeclipse.phpmanual / src / net / sourceforge / phpeclipse / phpmanual / PHPManualUIPlugin.java
index 81e4e8b..d867060 100644 (file)
@@ -1,5 +1,7 @@
 package net.sourceforge.phpeclipse.phpmanual;
 
+import java.util.MissingResourceException;
+
 import org.eclipse.jface.resource.ImageDescriptor;
 import org.eclipse.ui.plugin.AbstractUIPlugin;
 import org.osgi.framework.BundleContext;
@@ -58,4 +60,12 @@ public class PHPManualUIPlugin extends AbstractUIPlugin {
        public static ImageDescriptor getImageDescriptor(String path) {
                return imageDescriptorFromPlugin(PLUGIN_ID, path);
        }
+       
+       public static String getString(String key) {
+               try {
+                       return PHPManualUiMessages.getString(key);
+               } catch (MissingResourceException e) {
+                       return '!' + key + '!';
+               }
+       }
 }