Sample/RooProjectProperties.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 25 May 2010 11:26:10 +0000 (19:26 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 25 May 2010 11:26:10 +0000 (19:26 +0800)
Sample/RooProjectProperties.js

index f7baa99..d9a4fd3 100644 (file)
@@ -13,6 +13,11 @@ RooProjectProperties=new XObject({
     xtype: Gtk.Dialog,
     modal : true,
     show : function() {
+        // get the active project.
+        
+        var project = this.get('/Window.LeftTree').getActiveFile().project;
+        print (project.fn);
+    
         this.el.show_all();
     },
     default_width : 500,