- var nb = this.get('/LeftTopPanel.notebook');
- if (this.el.expanded) {
- // now expanded..
-
- var pm = imports.Builder.Provider.ProjectManager.ProjectManager;
-
-
- var model = this.get('/LeftProjectTree.combomodel');
- // print ("loading Projects?")
- //console.dump(pm.projects);
- model.loadData(pm.projects);
-
-
- nb.el.set_current_page(1);
- //pm.on('changed', function() {
- //console.log("CAUGHT project manager change");
- // _combo.model.loadData(pm.projects);
- //}
- return;
- }
- nb.el.set_current_page(0);
+ // this does not actually expand it..
+ // that is done by GTK..
+
+
+
+ if (!this.el.expanded) {
+ this.onExpand();
+ } else {
+ this.onCollapse();
+ }
+