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

Method getExecution

src/main/java/fielded/RemoteEditor.java:1255–1266  ·  view source on GitHub ↗
(Box box, Dict.Prop<String> prop)

Source from the content-addressed store, hash-verified

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.

Callers 7

ExecMethod · 0.95
chordAtMethod · 0.95
getDefaultSuffixMethod · 0.95
getLanguageMethod · 0.95
RemoteEditorMethod · 0.95
changeSelectionMethod · 0.95
ChorderMethod · 0.80

Calls 6

breadthFirstMethod · 0.80
upwardsMethod · 0.80
getMethod · 0.65
mapMethod · 0.45
hasMethod · 0.45
supportMethod · 0.45

Tested by

no test coverage detected