(Box box, Dict.Prop<String> prop)
| 1253 | } |
| 1254 | |
| 1255 | static public Execution getExecution(Box box, Dict.Prop<String> prop) { |
| 1256 | |
| 1257 | return box.breadthFirst(box.upwards()) |
| 1258 | .filter(x -> x.properties.has(Execution.execution)) |
| 1259 | .map(x -> x.properties.get(Execution.execution)) |
| 1260 | .filter(x -> x != null) |
| 1261 | .filter(x -> x.support(box, prop) != null) |
| 1262 | .findFirst() |
| 1263 | .orElseGet(() -> null); |
| 1264 | |
| 1265 | |
| 1266 | } |
| 1267 | |
| 1268 | /** |
| 1269 | * A general purpose Send some JavaScript to a text editor call. This is queued to run inside the animation cycle, and thus is thread-safe. |
no test coverage detected