+ },\r
+ "uninstall" : {\r
+ label : "Uninstall",\r
+ icon : "org.argeo.slc.ria/window-close.png",\r
+ shortcut: null,\r
+ enabled : false,\r
+ menu : "Distributions",\r
+ toolbar : "list",\r
+ callback: function(e){\r
+ var selection = this.getViewSelection();\r
+ var node = selection.getNodes()[0];\r
+ var request = org.argeo.slc.ria.SlcApi.getUninstallModuleService(node[0], node[1]);\r
+ request.addListener("completed", this.load, this);\r
+ request.send();\r
+ },\r
+ selectionChange : function(viewId, selection){\r
+ if(viewId != "distrib") return;\r
+ this.setEnabled((selection!=null && selection.length==1));\r
+ },\r
+ command : null\r