MCPcopy Index your code
hub / github.com/OpenSourcePhysics/osp / getString

Method getString

src/org/opensourcephysics/tools/ToolsRes.java:52–58  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

50 * @return the localized string
51 */
52 static public String getString(String key) {
53 try {
54 return res.getString(key);
55 } catch (MissingResourceException ex) {
56 return "!" + key + "!"; //$NON-NLS-1$ //$NON-NLS-2$
57 }
58 }
59
60 /**
61 * Gets the language for this locale.

Callers 15

getLabelMethod · 0.95
setTitlesMethod · 0.95
createGUIMethod · 0.95
refreshGUIMethod · 0.95
getUniqueNameMethod · 0.95
mouseMovedMethod · 0.95
getPropLabelsMethod · 0.95
getStyleDialogMethod · 0.95
getValueAtMethod · 0.95
actionPerformedMethod · 0.95
setTitlesMethod · 0.95

Calls 1

getStringMethod · 0.65

Tested by

no test coverage detected