MCPcopy Create free account
hub / github.com/NASAWorldWind/WorldWindJava / getMessage

Method getMessage

src/gov/nasa/worldwind/util/Logging.java:99–111  ·  view source on GitHub ↗

Retrieves a message from the WorldWind message resource bundle. @param property the property identifying which message to retrieve. @return The requested message.

(String property)

Source from the content-addressed store, hash-verified

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

Callers 15

startImportMethod · 0.95
openKMLMethod · 0.95
isDataRasterMethod · 0.95
isWWDotNetLayerSetMethod · 0.95
ImportedDataPanelMethod · 0.95
addImportedDataMethod · 0.95
addLayerToWorldWindowMethod · 0.95
getLabelMethod · 0.95
WWOMeasureToolMethod · 0.95

Calls 5

loggerMethod · 0.95
logMethod · 0.80
formatMethod · 0.80
getObjectMethod · 0.65
getDefaultMethod · 0.45

Tested by

no test coverage detected