load_file (MainWindow)

          # File lib/json/editor.rb, line 1247
    1247:       def load_file(filename)
    1248:         if filename
    1249:           if File.directory?(filename)
    1250:             Editor.error_dialog(self, "Try to select a JSON file!")
    1251:             nil
    1252:           else
    1253:             @filename = filename
    1254:             if data = read_data(filename)
    1255:               toplevel.display_status("Loaded data from '#@filename'.")
    1256:             end
    1257:             display_title
    1258:             data
    1259:           end
    1260:         end
    1261:       end