load_file (MainWindow)

          # File lib/json/editor.rb, line 1238
    1238:       def load_file(filename)
    1239:         if filename
    1240:           if File.directory?(filename)
    1241:             Editor.error_dialog(self, "Try to select a JSON file!")
    1242:             nil
    1243:           else
    1244:             @filename = filename
    1245:             if data = read_data(filename)
    1246:               toplevel.display_status("Loaded data from '#@filename'.")
    1247:             end
    1248:             display_title
    1249:             data
    1250:           end
    1251:         end
    1252:       end