"# int pos_root_y" : "",
"# string ptype" : "\"\"",
"bool expand" : true,
- "| void showPlainFile" : "(string fname)\n{\n this.ptype = \"\";\n this.key = \"\";\n this.node = null;\n this.file = null;\n string str;\n GLib.FileUtils.get_contents(fname, out str);\n \n this.view.load(str);\n this.key_edit.el.text = \"\"; \n\n}",
+ "| void showPlainFile" : "(string fname)\n{\n this.ptype = \"\";\n this.key = \"\";\n this.node = null;\n this.file = null;\n string str;\n try {\n GLib.FileUtils.get_contents(fname, out str);\n } catch (Error e) {\n str = \"\";\n }\n \n this.view.load(str);\n this.key_edit.el.text = \"\"; \n\n}",
"# string key" : "\"\"",
"* pack" : "add",
"xtype" : "Box",
this.node = null;
this.file = null;
string str;
- GLib.FileUtils.get_contents(fname, out str);
+ try {
+ GLib.FileUtils.get_contents(fname, out str);
+ } catch (Error e) {
+ str = "";
+ }
this.view.load(str);
this.key_edit.el.text = "";