(String ct)
| 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("✓")) 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 |