},
command : null
- },
+ },
+ "copytocollection" : {
+ shared : true,
+ selectionChange : function(viewId, xmlNode){
+ if(viewId != "applet") return;
+ if(!xmlNode){
+ this.setEnabled(false);
+ }else{
+ this.setEnabled(true);
+ }
+ }
+ },
"deletetest" : {
shared : true,
callback : function(e){
- alert("Should delete applet selection" + this.getInstanceId());
+ //this.debug(this);
+ alert("Should delete applet selection in " + this.getInstanceId());
},
selectionChange : function(viewId, xmlNode){
if(viewId != "applet") return;
if(nodes.length){
viewSelection.addNode(nodes[0]);
}
+ this.getView().focus();
}, this);
var contextMenu = org.argeo.ria.event.CommandsManager.getInstance().createMenuFromIds(["close"]);
this.tree.setContextMenu(contextMenu);
-
+
},
/**