Recursively collapse/expand a subtree starting from the selected node.
# File ext/json/lib/json/editor.rb, line 444
def collapse_expand(item)
if current = selection.selected
if row_expanded?(current.path)
collapse_row(current.path)
else
expand_row(current.path, true)
end
else
toplevel.display_status("Append a node into the root first!")
end
end