src/Builder4/GtkView.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 29 Apr 2015 09:04:16 +0000 (17:04 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 29 Apr 2015 09:04:16 +0000 (17:04 +0800)
src/Builder4/GtkView.vala

src/Builder4/GtkView.bjs
src/Builder4/GtkView.vala

index d172a65..3b6944a 100644 (file)
@@ -20,7 +20,7 @@
    "xtype" : "VPaned",
    "# JsRender.JsRender file" : "null",
    "int height" : 0,
-   "| void compileNotice" : "( string type,   string file,   int line, string  message) {\n    // if type = \"START\"... then we reset the tree?\n    // the issue is that the compiler is continually going..\n    // so editing a file etc.. may change things.?\n    // probably not an issue.\n    if (type ==\"START\") {\n        // reset the tree;\n        return;\n    }\n    var top = 0;\n    switch(type) {\n        case \"ERR\":\n            top = 0;\n            break;\n        case \"WARN\":\n            top =1;\n            break;\n        case \"DEPR\":\n            top =2;\n            break;\n    }\n    \n     \n    // tree:\n    \n      // error_type\n         // filename\n            // line - message\n            \n     // sort (and 'id'?)\n     \n        // 0-2 : fname : line\n     // display\n      \n    \n}\n",
+   "| void compileNotice" : "( string type,   string file,   int line, string  message) {\n    // if type = \"START\"... then we reset the tree?\n    // the issue is that the compiler is continually going..\n    // so editing a file etc.. may change things.?\n    // probably not an issue.\n    if (type ==\"START\") {\n        // reset the tree;\n        return;\n    }\n    var ts = _this.compile_result_store;\n    var top = 0;\n    switch(type) {\n        case \"ERR\":\n            top = 0;\n            break;\n        case \"WARN\":\n            top =1;\n            break;\n        case \"DEPR\":\n            top =2;\n            break;\n    }\n    \n    //var tn = ts.nodeFindOrCreate(null,top.to_string(), type);\n    //tn = ts.nodeFindOrCreate(tn, \"%d:%s\".printf(top, file), file);    \n    //ts.nodeFindOrAppend(tn, \"%d:%s:%d\".printf(top, file,line), message);   \n    // tree:\n    \n      // error_type\n         // filename\n            // line - message\n            \n     // sort (and 'id'?)\n     \n        // 0-2 : fname : line\n     // display\n      \n    \n}\n",
    "$ xns" : "Gtk",
    "items" : [
     {
index 1e1b3b5..135c9b4 100644 (file)
@@ -146,6 +146,7 @@ public class Xcls_GtkView : Object
             // reset the tree;
             return;
         }
+        var ts = _this.compile_result_store;
         var top = 0;
         switch(type) {
             case "ERR":
@@ -159,7 +160,9 @@ public class Xcls_GtkView : Object
                 break;
         }
         
-         
+        //var tn = ts.nodeFindOrCreate(null,top.to_string(), type);
+        //tn = ts.nodeFindOrCreate(tn, "%d:%s".printf(top, file), file);    
+        //ts.nodeFindOrAppend(tn, "%d:%s:%d".printf(top, file,line), message);   
         // tree:
         
           // error_type