(Properties props, String key)
| 217 | } |
| 218 | |
| 219 | protected static int getInt(Properties props, String key) { |
| 220 | String s = props.getProperty(key); |
| 221 | if (s!=null) { |
| 222 | try { |
| 223 | return Integer.decode(s).intValue(); |
| 224 | } catch (NumberFormatException e) {IJ.log(""+e);} |
| 225 | } |
| 226 | return -1; |
| 227 | } |
| 228 | |
| 229 | protected static Properties loadPrefs() { |
| 230 | Properties result = new Properties(); |
no test coverage detected