MCPcopy Create free account
hub / github.com/benfry/processing4 / getWordLists

Method getWordLists

app/src/processing/app/SketchName.java:199–220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

197 }
198
199 static Map<String, WordList> getWordLists() {
200 if (wordLists == null) {
201 wordLists = new HashMap<>();
202 try {
203 File namingFile = Base.getLibFile(FILENAME);
204 load(namingFile);
205 } catch (Exception e) {
206 Messages.showWarning("Naming Error",
207 "Could not load word lists from " + FILENAME, e);
208 }
209 File sketchbookFile = new File(Base.getSketchbookFolder(), FILENAME);
210 if (sketchbookFile.exists()) {
211 try {
212 load(sketchbookFile);
213 } catch (Exception e) {
214 Messages.showWarning("Naming Error",
215 "Error while reading " + FILENAME + " from sketchbook folder", e);
216 }
217 }
218 }
219 return wordLists;
220 }
221
222
223 static public String[] getOptions() {

Callers 2

nextFolderMethod · 0.95
getOptionsMethod · 0.95

Calls 4

getLibFileMethod · 0.95
loadMethod · 0.95
showWarningMethod · 0.95
getSketchbookFolderMethod · 0.95

Tested by

no test coverage detected