error_dialog (Editor)

        # File lib/json/editor.rb, line 50
    50:     def Editor.error_dialog(window, text)
    51:       dialog = MessageDialog.new(window, Dialog::MODAL,
    52:         MessageDialog::ERROR,
    53:         MessageDialog::BUTTONS_CLOSE, text)
    54:       dialog.show_all
    55:       dialog.run
    56:     rescue TypeError
    57:       dialog = MessageDialog.new(Editor.window, Dialog::MODAL,
    58:         MessageDialog::ERROR,
    59:         MessageDialog::BUTTONS_CLOSE, text)
    60:       dialog.show_all
    61:       dialog.run
    62:     ensure
    63:       dialog.destroy if dialog
    64:     end