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 SaveAction extends NodeAction { 32 33 public SaveAction() {} 34 35 38 public String getName() { 39 return NbBundle.getBundle(SaveAction.class).getString("MON_Save_20"); 40 } 41 42 45 public HelpCtx getHelpCtx() { 46 return HelpCtx.DEFAULT_HELP; 47 } 48 49 public void performAction(Node[] nodes) { 50 TransactionView.getInstance().saveTransaction(nodes); 51 } 52 53 public boolean enable(Node[] nodes) { 54 return true; 55 } 56 57 public boolean asynchronous() { 58 return false; 59 } 60 } | Popular Tags |