"items" : [
{
"listeners" : {
- "cursor_changed" : "() => {\n var sel = this.el.get_selection();\n\n if (sel.count_selected_rows() < 1) {\n\n print(\"selected rows < 1\\n\");\n //??this.mo \n return ;\n }\n \n //console.log('changed');\n \n Gtk.TreeIter iter;\n Gtk.TreeModel mod;\n sel.get_selected(out mod, out iter);\n /*\n store.set(citer, \n 0, file + \":\" + line, \n 1, int.parse(line), \n 2, GLib.Markup.escape_text(line + \": \" + msg), \n 3, file,-1);\n \n });\n */\n \n \n \n // var val = \"\";\n GLib.Value value;\n _this.compile_result_store.el.get_value(iter, 3, out value);\n var fname = (string)value;\n GLib.Value lvalue;\n _this.compile_result_store.el.get_value(iter, 1, out lvalue);\n var line = (int) lvalue;\n \n \n \n \n \n \n print (\"loadfile %s : %d\", fname,line);\n \n // _this.sourceview.loadFile(fname, line);\n \n \n \n \n}\n "
+ "cursor_changed" : "() => {\n var sel = this.el.get_selection();\n\n if (sel.count_selected_rows() < 1) {\n\n print(\"selected rows < 1\\n\");\n //??this.mo \n return ;\n }\n \n //console.log('changed');\n \n Gtk.TreeIter iter;\n Gtk.TreeModel mod;\n sel.get_selected(out mod, out iter);\n /*\n store.set(citer, \n 0, file + \":\" + line, \n 1, int.parse(line), \n 2, GLib.Markup.escape_text(line + \": \" + msg), \n 3, file,-1);\n \n });\n */\n \n \n \n // var val = \"\";\n GLib.Value value;\n _this.compile_result_store.el.get_value(iter, 3, out value);\n var fname = (string)value;\n GLib.Value lvalue;\n _this.compile_result_store.el.get_value(iter, 1, out lvalue);\n var line = (int) lvalue;\n \n \n \n \n \n \n print (\"loadfile %s : %d\", fname,line);\n \n // _this.sourceview.loadFile(fname, line);\n /*\n var f = _this.sourceview.curfname;\n \n Regex regex = new Regex(\"\\\\.vala$\");\n \n var bjsf = regex.replace(f,f.length , 0 , \".bjs\");\n \n var p = _this.window.project;\n \n \n \n var jsr = p.getByPath(bjsf);\n if (jsr != null) {\n _this.window.windowstate.fileViewOpen(jsr);\n \n return;\n \n }\n */ \n \n}\n "
},
"id" : "compile_tree",
"* init" : "{\n var description = new Pango.FontDescription();\n description.set_size(8000);\n this.el.modify_font(description);\n\n}\n",
print ("loadfile %s : %d", fname,line);
// _this.sourceview.loadFile(fname, line);
+ /*
+ var f = _this.sourceview.curfname;
+
+ Regex regex = new Regex("\\.vala$");
-
+ var bjsf = regex.replace(f,f.length , 0 , ".bjs");
+
+ var p = _this.window.project;
+
+
+
+ var jsr = p.getByPath(bjsf);
+ if (jsr != null) {
+ _this.window.windowstate.fileViewOpen(jsr);
+ return;
+
+ }
+ */
});
}