resources/RooUsage.txt
[app.Builder.js] / src / Builder4 / WindowState.vala
index 10162fd..b9b7ee6 100644 (file)
@@ -15,7 +15,7 @@ public class WindowState : Object
                OBJECT,
                PROP,
                LISTENER,
-               CODE,
+               CODE,    // code editor.
                CODEONLY,
                FILES,
                PROJECT, // project settings..
@@ -1139,6 +1139,12 @@ public class WindowState : Object
                {
                        // vala has finished compiling...
                        print("vala compiled");
+                       var generator = new Json.Generator ();
+                       var n  = new Json.Node(Json.NodeType.OBJECT);
+                       n.init_object(obj);
+                       generator.set_root (n);
+                       print("result :%s", generator.to_data (null));
+                       
                        
                        var buf = this.code_editor.buffer;
                        buf.check_running = false;
@@ -1167,8 +1173,8 @@ public class WindowState : Object
                        } else {
                                this.win.statusbar_depricated.setNotices( new Json.Object(),0);
                        }
-                       if (this.state = State.CODE:) {
-                               buf.highlightErrorsJson("ERR", obj);
+                       if (this.state == State.CODE || this.state == State.PROJECTCODEONLY) {
+                               buf.highlightErrorsJson("ERR", obj); 
                                buf.highlightErrorsJson("WARN", obj);
                                buf.highlightErrorsJson("DEPR", obj);
                        }
@@ -1185,6 +1191,10 @@ public class WindowState : Object
                                gbuf.highlightErrorsJson("ERR", obj);
                                gbuf.highlightErrorsJson("WARN", obj);
                                gbuf.highlightErrorsJson("DEPR", obj);                  
+                               
+                               if (!has_errors) {
+                                       this.win.statusbar_run.el.show();
+                               }
                        
                   }