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 33 public class CopyAction extends CallbackSystemAction { 34 protected void initialize() { 35 super.initialize(); 36 } 37 38 public Object getActionMapKey() { 39 return javax.swing.text.DefaultEditorKit.copyAction; 40 } 41 42 public String getName() { 43 return NbBundle.getMessage(CopyAction.class, "Copy"); 44 } 45 46 public HelpCtx getHelpCtx() { 47 return new HelpCtx(CopyAction.class); 48 } 49 50 protected String iconResource() { 51 return "org/openide/resources/actions/copy.gif"; } 53 54 protected boolean asynchronous() { 55 return false; 56 } 57 } 58 | Popular Tags |