| 330 | |
| 331 | @HiddenInAutocomplete |
| 332 | private String findAndLoad(String f, boolean append) { |
| 333 | |
| 334 | String[] roots = {Main.app + "/modules/fieldcore/resources/", Main.app + "/modules/fieldcef_macosx/resources/", Main.app + "/lib/web/"}; |
| 335 | for (String s : roots) { |
| 336 | if (new File(s + "/" + f).exists()) return readFile(s + "/" + f, append); |
| 337 | } |
| 338 | Log.log("glassbrowser_.error", () -> this.getClass() + " Couldnt' find file in playlist :" + f); |
| 339 | return null; |
| 340 | } |
| 341 | |
| 342 | @HiddenInAutocomplete |
| 343 | private Stream<Box> selection() { |
| 344 | return breadthFirst(both()).filter(x -> x.properties.isTrue(Mouse.isSelected, false)) |