copy_node (PopUpMenu)

         # File lib/json/editor.rb, line 305
    305:       def copy_node(item)
    306:         if current = selection.selected
    307:           if current and current.type == 'Key'
    308:             @clipboard_data = {
    309:               current.content => Editor.model2data(current.first_child)
    310:             }
    311:           else
    312:             @clipboard_data = Editor.model2data(current)
    313:           end
    314:           window.change
    315:           toplevel.display_status("Copied a node from tree.")
    316:         end
    317:       end