From: Alan Knowles Date: Mon, 13 Apr 2015 09:30:17 +0000 (+0800) Subject: src/Project/Project.vala X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=6df48c61f7b23bb43fdf264fcdc0a725231d4479;p=app.Builder.js src/Project/Project.vala --- diff --git a/src/Project/Project.vala b/src/Project/Project.vala index 3972c814f..3d61f4955 100644 --- a/src/Project/Project.vala +++ b/src/Project/Project.vala @@ -21,7 +21,7 @@ namespace Project { // static array of all projects. public Gee.HashMap projects; - + public bool projects_loaded = false; @@ -40,6 +40,9 @@ namespace Project { public Gee.HashMap files ; //tree : false, public string xtype; + + public JSON.Object json_project_data; + bool is_scanned; @@ -47,7 +50,8 @@ namespace Project { public Project (string path) { this.name = GLib.Path.get_basename(path); // default.. - + this.json_project_data = new JSON.Object(); + this.is_scanned = false; this.paths = new Gee.HashMap(); this.files = new Gee.HashMap(); @@ -131,7 +135,7 @@ namespace Project { return; } - var obj = node.get_object (); + var obj = node.get_object (); var xtype = obj.get_string_member("xtype"); @@ -147,7 +151,9 @@ namespace Project { var proj = factory(xtype, fpath); - + + proj.json_project_data = obj; // store the original object... + proj.fn = Path.get_basename(jsonfile).split(".")[0]; // might not exist? @@ -535,4 +541,4 @@ namespace Project { } } - \ No newline at end of file +