cut_node (PopUpMenu)

         # File lib/json/editor.rb, line 288
    288:       def cut_node(item)
    289:         if current = selection.selected
    290:           if current and current.type == 'Key'
    291:             @clipboard_data = {
    292:               current.content => Editor.model2data(current.first_child)
    293:             }
    294:           else
    295:             @clipboard_data = Editor.model2data(current)
    296:           end
    297:           model.remove(current)
    298:           window.change
    299:           toplevel.display_status("Cut a node from tree.")
    300:         end
    301:       end