1 19 package org.openide.actions; 20 21 import org.openide.util.HelpCtx; 22 import org.openide.util.NbBundle; 23 import org.openide.util.actions.CallbackSystemAction; 24 25 26 30 public class DeleteAction extends CallbackSystemAction { 31 public DeleteAction() { 32 putValue("noIconInMenu", Boolean.TRUE); } 34 35 protected void initialize() { 36 super.initialize(); 37 } 38 39 public Object getActionMapKey() { 40 return "delete"; } 42 43 public String getName() { 44 return NbBundle.getMessage(DeleteAction.class, "Delete"); 45 } 46 47 public HelpCtx getHelpCtx() { 48 return new HelpCtx(DeleteAction.class); 49 } 50 51 protected String iconResource() { 52 return "org/openide/resources/actions/delete.gif"; } 54 55 protected boolean asynchronous() { 56 return true; 57 } 58 } 59 | Popular Tags |