MCPcopy Create free account
hub / github.com/PCGen/pcgen / getGMGenOption

Method getGMGenOption

code/src/java/pcgen/core/SettingsHandler.java:244–249  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 {

Callers 1

getPriorityMethod · 0.95

Calls 5

getOptionsMethod · 0.95
equalsIgnoreCaseMethod · 0.80
decodeMethod · 0.45
valueOfMethod · 0.45
getPropertyMethod · 0.45

Tested by

no test coverage detected