/** * Returns the string from the plugin's resource bundle, or 'key' if not found. * * @param key the key * @return the resource string */ public String getResourceString(String key) { ResourceBundle bundle = getResourceBundle(); try { return bundle.getString(key); } catch (MissingResourceException e) { return key; } }