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 DisplayAction extends NodeAction { 38 39 42 public DisplayAction() {} 43 44 47 public String getName() { 48 return NbBundle.getBundle(DisplayAction.class).getString("MON_Display_12"); 49 } 50 51 54 public HelpCtx getHelpCtx() { 55 return HelpCtx.DEFAULT_HELP; 56 } 57 58 public boolean enable(Node[] nodes) { 59 if(nodes != null && nodes.length == 1) return true; 60 else return false; 61 } 62 63 public void performAction(Node[] nodes) { 64 TransactionView.getInstance().displayTransaction(nodes[0]); 65 } 66 67 public boolean asynchronous() { 68 return false; 69 } 70 } | Popular Tags |