1 19 20 package org.netbeans.modules.derby; 21 22 23 24 import org.openide.util.HelpCtx; 25 import org.openide.util.NbBundle; 26 import org.openide.util.actions.CallableSystemAction; 27 28 29 33 public class StopAction extends CallableSystemAction { 34 35 public StopAction(){ 36 putValue("noIconInMenu", Boolean.TRUE); } 38 39 public boolean isEnabled() { 40 return (RegisterDerby.getDefault().isRunning()==true); 41 } 42 43 public void performAction() { 44 RegisterDerby.getDefault().stop(); 45 46 } 47 48 49 public String getName() { 50 return NbBundle.getMessage(StopAction.class, "LBL_StopAction"); 51 } 52 53 54 55 public HelpCtx getHelpCtx() { 56 return null; } 60 61 62 63 protected boolean asynchronous() { 64 return true; 65 } 66 67 68 } 69 | Popular Tags |