1 19 20 23 24 package org.netbeans.modules.web.monitor.client; 25 26 import org.openide.nodes.Node; 27 import org.openide.util.HelpCtx; 28 import org.openide.util.NbBundle; 29 import org.openide.util.actions.NodeAction; 30 31 public class DeleteAction extends NodeAction { 32 33 public DeleteAction() {} 34 37 public String getName() { 38 return NbBundle.getBundle(DeleteAction.class).getString("MON_Delete_8"); 39 } 40 41 44 public HelpCtx getHelpCtx() { 45 return HelpCtx.DEFAULT_HELP; 46 } 47 48 public void performAction(Node[] nodes) { 49 MonitorAction.getController().deleteTransaction(nodes); 50 TransactionView.getInstance().blank(); 51 } 52 53 public boolean enable(Node[] nodes) { 54 return true; 55 } 56 57 public boolean asynchronous() { 58 return false; 59 } 60 } | Popular Tags |