MCPcopy Index your code
hub / github.com/processing/processing / loadLanguage

Method loadLanguage

app/src/processing/app/Language.java:129–142  ·  view source on GitHub ↗

Read the saved language

()

Source from the content-addressed store, hash-verified

127
128 /** Read the saved language */
129 static private String loadLanguage() {
130 try {
131 if (prefFile.exists()) {
132 String language = PApplet.loadStrings(prefFile)[0];
133 language = language.trim().toLowerCase();
134 if (language.trim().length() != 0) {
135 return language;
136 }
137 }
138 } catch (Exception e) {
139 e.printStackTrace();
140 }
141 return null;
142 }
143
144
145 /**

Callers 1

LanguageMethod · 0.95

Calls 3

loadStringsMethod · 0.95
trimMethod · 0.45
printStackTraceMethod · 0.45

Tested by

no test coverage detected