- modal : true,
- show : function() {
- // get the active project.
- var file = this.get('/Window.LeftTree').getActiveFile();
- if (!file) {
- this.get('/StandardErrorDialog').show("No file is currently active");
- return;
- }
- var project = this.get('/Window.LeftTree').getActiveFile().project;
- //print (project.fn);
- project.runhtml = project.runhtml || '';
- this.get('view').el.get_buffer().set_text(project.runhtml, project.runhtml.length);
- this.get('dbcon').el.set_text(project.dbcon || '');
- print("project db: " + project.dbcon);
- this.el.show_all();
- },
- default_width : 500,