XObject = imports.XObject.XObject;
File = imports.File.File;
-ProjectManager = imports.Builder.Provider.ProjectManager.ProjectManager;
+ProjectManager = imports.ProjectManager.ProjectManager;
Observable = imports.Observable.Observable;
Base = XObject.define(
this.addEvents({ 'changed' : true });
var _this = this;
this.on('changed' , function() {
- Seed.print("Calling PM - changed");
+ Seed.print("Project.Base: Calling PM - changed");
ProjectManager.fireEvent('changed');
});
},
getPalete : function()
{
- print("GET PROVIDER FOR " + this.xtype);
+ print("Project.Base: GET PROVIDER FOR " + this.xtype);
return ProjectManager.getPalete(this.xtype);
},
toJSON : function()
continue;
}
}
- print("Storing " + k);
+ print("Project.Base: Storing " + k);
ret[k] = _this[k];
}
for (var i in this.paths) {
return GLib.basename(i);
}
+ return false;
},
toTree : function()
scanDir : function(dir, dp)
{
dp = dp || 0;
- Seed.print("Running scandir on " + dir);
+ Seed.print("Project.Base: Running scandir on " + dir);
if (dp > 5) { // no more than 5 deep?
return;
}
// this should be done async -- but since we are getting the proto up ...
var dirs = File.list(dir);
+
+ ///print(dirs); Seed.exit();
+
var subs = [];
var _this = this;
dirs.forEach(function( fn ){
- console.log('trying ' + dir + '/' + fn);
+ //console.log('trying ' + dir + '/' + fn);
if (!fn) {
subs.forEach( function(s) {
_this.scanDir(s, dp+1);
var xt = _this.xtype;
var cls = imports.JsRender[xt][xt];
- Seed.print("Adding file " + dir + '/' + fn);
+ //Seed.print("Adding file " + dir + '/' + fn);
_this.files[dir + '/' + fn] = new cls({
path : dir + '/' + fn,
parent : parent,