MCPcopy Index your code
hub / github.com/benfry/processing4 / reload

Method reload

app/src/processing/app/ui/Theme.java:89–102  ·  view source on GitHub ↗

Pull in the version from the user's sketchbook folder, or if none exists, use the setting from preferences.

()

Source from the content-addressed store, hash-verified

87 * or if none exists, use the setting from preferences.
88 */
89 static public void reload() {
90 if (!loadSketchbookFile()) {
91 String prefTheme = Preferences.get("theme");
92 try {
93 File prefFile = new File(getThemeFolder(), prefTheme);
94 if (prefFile.exists()) {
95 theme.load(prefFile);
96 }
97 } catch (IOException e) {
98 Messages.showWarning("Theme Reload Problem",
99 "Error while reloading the theme. Please report.", e);
100 }
101 }
102 }
103
104
105 /**

Callers 2

reloadThemeMethod · 0.95
initMethod · 0.95

Calls 5

loadSketchbookFileMethod · 0.95
getMethod · 0.95
getThemeFolderMethod · 0.95
showWarningMethod · 0.95
loadMethod · 0.45

Tested by

no test coverage detected