示例#1
0
 static {
   try {
     resourceBundle =
         ResourceBundle.getBundle("com.google.eclipse.elt.pty.internal.PtyPluginResources");
   } catch (MissingResourceException x) {
     resourceBundle = null;
   }
 }
示例#2
0
 public static String getResourceString(String key) {
   try {
     return resourceBundle.getString(key);
   } catch (MissingResourceException e) {
     return "!" + key + "!";
   } catch (NullPointerException e) {
     return "#" + key + "#";
   }
 }