Retrieves a message from the WorldWind message resource bundle. @param property the property identifying which message to retrieve. @return The requested message.
(String property)
| 97 | * @return The requested message. |
| 98 | */ |
| 99 | public static String getMessage(String property) |
| 100 | { |
| 101 | try |
| 102 | { |
| 103 | return (String) ResourceBundle.getBundle(MESSAGE_BUNDLE_NAME, Locale.getDefault()).getObject(property); |
| 104 | } |
| 105 | catch (Exception e) |
| 106 | { |
| 107 | String message = "Exception looking up message from bundle " + MESSAGE_BUNDLE_NAME; |
| 108 | logger().log(java.util.logging.Level.SEVERE, message, e); |
| 109 | return message; |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | /** |
| 114 | * Retrieves a message from the WorldWind message resource bundle formatted with a single argument. The argument is |
no test coverage detected