Set most of this objects static properties from the loaded options. Called by readOptionsProperties. Most of the static properties are set as a side effect, with the main screen size being returned. @param optionName @param defaultValue @return the default Dimension to set the scree
(final String optionName, final boolean defaultValue)
| 242 | * @return the default {@code Dimension} to set the screen size to |
| 243 | */ |
| 244 | public static boolean getGMGenOption(final String optionName, final boolean defaultValue) |
| 245 | { |
| 246 | final String option = getGMGenOption(optionName, defaultValue ? "true" : "false"); //$NON-NLS-1$ //$NON-NLS-2$ |
| 247 | |
| 248 | return "true".equalsIgnoreCase(option); //$NON-NLS-1$ |
| 249 | } |
| 250 | |
| 251 | public static int getGMGenOption(final String optionName, final int defaultValue) |
| 252 | { |
no test coverage detected