MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / getString

Method getString

ij/src/main/java/ij/Prefs.java:820–828  ·  view source on GitHub ↗

Retrieves a string from IJ_Props or IJ_Prefs.txt. Does not retrieve strings set using Prefs.set().

(String key, String defaultString)

Source from the content-addressed store, hash-verified

818 /** Retrieves a string from IJ_Props or IJ_Prefs.txt.
819 Does not retrieve strings set using Prefs.set(). */
820 public static String getString(String key, String defaultString) {
821 if (props==null)
822 return defaultString;
823 String s = props.getProperty(key);
824 if (s==null)
825 return defaultString;
826 else
827 return s;
828 }
829
830 /** Retrieves a string from string in IJ_Props or IJ_Prefs.txt. */
831 public static String getString(String key) {

Callers 7

getDefaultDirectoryMethod · 0.95
addOpenRecentSubMenuMethod · 0.95
addSubMenuMethod · 0.95
addPluginsMenuMethod · 0.95
installPluginsMethod · 0.95
installPopupMenuMethod · 0.95
getMaPrefsMethod · 0.95

Calls 1

getPropertyMethod · 0.45

Tested by

no test coverage detected