1 19 20 24 25 package org.netbeans.modules.web.monitor.client; 26 27 import org.openide.nodes.Node; 28 import org.openide.util.HelpCtx; 29 import org.openide.util.NbBundle; 30 import org.openide.util.actions.NodeAction; 31 32 public class ReplayAction extends NodeAction { 33 34 public ReplayAction() {} 35 38 public String getName() { 39 return NbBundle.getBundle(ReplayAction.class).getString("MON_Replay_18"); 40 } 41 42 45 public HelpCtx getHelpCtx() { 46 return HelpCtx.DEFAULT_HELP; 47 } 48 49 public boolean enable(Node[] nodes) { 50 if(nodes != null && nodes.length == 1) return true; 51 else return false; 52 } 53 54 public void performAction(Node[] nodes) { 55 MonitorAction.getController().replayTransaction(nodes[0]); 56 } 57 58 public boolean asynchronous() { 59 return false; 60 } 61 } | Popular Tags |