src/Builder4/ValaCompileErrors.vala
},
{
"listeners" : {
- "clicked" : "() => {\n // is the file managed by the builder?\n \n var f = _this.sourceview.curfname;\n \n var p = _this.window.project;\n \n var jsr = p.getByPath(f);\n if (jsr != null) {\n \n \n }\n\n\n}"
+ "clicked" : "() => {\n // is the file managed by the builder?\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 return;\n \n }\n\n\n}"
},
"* pack" : "pack_start,true,true,0",
"xtype" : "Button",
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(f);
- if (jsr != null) {
+ var jsr = p.getByPath(bjsf);
+ if (jsr != null) {
+ _this.window.windowstate.fileViewOpen(jsr);
+ return;
+
}