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

Method initPreferences

code/src/java/pcgen/core/Globals.java:727–736  ·  view source on GitHub ↗

Apply the user's preferences to the initial state of the Globals.

()

Source from the content-addressed store, hash-verified

725 * Apply the user's preferences to the initial state of the Globals.
726 */
727 public static void initPreferences()
728 {
729 if (selectedPaper != -1)
730 {
731 // Already initialized
732 return;
733 }
734 final String papersize = PCGenSettings.getInstance().initProperty(PCGenSettings.PAPERSIZE, "A4");
735 selectPaper(papersize);
736 }
737
738 /**
739 * Sorts chooser lists using the appropriate method, based on the type of the first item in either list.

Callers 1

runMethod · 0.95

Calls 3

getInstanceMethod · 0.95
selectPaperMethod · 0.95
initPropertyMethod · 0.80

Tested by

no test coverage detected