Gets the localized value of a string. If no localized value is found, the key is returned surrounded by exclamation points. @param key the string to localize @return the localized string
(String key)
| 70 | * @return the localized string |
| 71 | */ |
| 72 | static String getString(String key) { |
| 73 | try { |
| 74 | return res.getString(key); |
| 75 | } catch (MissingResourceException ex) { |
| 76 | return "!" + key + "!"; //$NON-NLS-1$ //$NON-NLS-2$ |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * Adds a PropertyChangeListener. |
no test coverage detected