1 19 20 29 30 package org.netbeans.modules.web.monitor.client; 31 32 import org.openide.nodes.Node; 33 import org.openide.util.HelpCtx; 34 import org.openide.util.NbBundle; 35 import org.openide.util.actions.NodeAction; 36 37 public class DeleteCurrentAction extends NodeAction { 38 39 public DeleteCurrentAction() {} 40 43 public String getName() { 44 return NbBundle.getBundle(DeleteCurrentAction.class).getString("MON_Delete_current_10"); 45 } 46 47 50 public HelpCtx getHelpCtx() { 51 return HelpCtx.DEFAULT_HELP; 52 } 53 54 public void performAction(Node[] node) { 55 MonitorAction.getController().deleteDirectory(Controller.currDirStr); 57 } 58 59 public boolean enable(Node[] nodes) { 60 return true; 61 } 62 63 public boolean asynchronous() { 64 return false; 65 } 66 } | Popular Tags |