saveActionValue method
Stores an action-provided text (e.g. a location) at ref.
Implementation
void saveActionValue(TreeReference ref, String text) {
final ec = EvaluationContext.withContext(evaluationContext, ref);
final node = ec.resolveReference(ref);
if (node == null) return;
final wrapped = wrapData(text, node.dataType);
setValue(
wrapped == null ? null : castToDataType(wrapped.uncast(), node.dataType),
ref,
);
}