init : {\r
"reloadlogs" : {\r
label : "Reload Logs", \r
- icon : "resource/slc/view-refresh.png",\r
+ icon : "org.argeo.slc.ria/view-refresh.png",\r
shortcut : "Control+r",\r
enabled : true,\r
menu : null,\r
this.setView(viewPane);\r
this.setViewSelection(new org.argeo.ria.components.ViewSelection(viewPane.getViewId())); \r
this._createLayout();\r
+ this.UIBus = org.argeo.ria.event.UIBus.getInstance();\r
},\r
\r
/**\r
* \r
*/\r
load : function(){\r
- this._reloadLogger(); \r
- this.timer = new qx.event.Timer(15000);\r
- this.timer.addListener("interval", this._reloadLogger, this);\r
- this.timer.start(); \r
+ this._reloadLogger();\r
+ this.UIBus.addListener("newSlcExecution", this._reloadLogger, this);\r
+ this.UIBus.addListener("updateSlcExecutionStatus", this._reloadLogger, this);\r
},\r
\r
addScroll : function(){\r
},\r
\r
close : function(){\r
- this.timer.stop();\r
+ this.UIBus.removeListener("newSlcExecution", this._reloadLogger, this);\r
+ this.UIBus.removeListener("updateSlcExecutionStatus", this._reloadLogger, this);\r
},\r
\r
/**\r