()
| 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() { |
no test coverage detected