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

Method go

src/main/java/fieldbox/boxes/plugins/Typing.java:131–146  ·  view source on GitHub ↗
(String ct)

Source from the content-addressed store, hash-verified

129 }
130
131 private void go(String ct) {
132
133
134 Consumer<Pair<Integer, String>> error = x -> {Drawing.notify(x.second, this, 500);};
135 Consumer<String> success = x -> {
136 if (x.trim().equals("&#10003;")) x = "[ok]";
137 Drawing.notify(x, this, 100);
138 };
139
140
141 selection().forEach(box -> {
142 box.first(Execution.execution)
143 .ifPresent(x -> x.support(box, Execution.code)
144 .executeTextFragment(ct, "", success, error));
145 });
146 }
147
148
149

Callers 1

TypingMethod · 0.95

Calls 7

notifyMethod · 0.95
selectionMethod · 0.95
firstMethod · 0.80
executeTextFragmentMethod · 0.65
equalsMethod · 0.45
forEachMethod · 0.45
supportMethod · 0.45

Tested by

no test coverage detected