MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / center

Method center

src/main/java/fieldcef/plugins/TextEditor.java:332–341  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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))

Callers

nothing calls this directly

Calls 7

dirtyMethod · 0.95
isTrueMethod · 0.80
getMethod · 0.65
findMethod · 0.45
bothMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45

Tested by

no test coverage detected