package iDSS.gridDisp;

/*
 * @(#)CopyAction.java	1.1 00/03/30
 *
 * Copyright 2000 by Sun Microsystems, Inc.,
 * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information
 * of Sun Microsystems, Inc. ("Confidential Information").  You
 * shall not disclose such Confidential Information and shall use
 * it only in accordance with the terms of the license agreement
 * you entered into with Sun.
 */

import javax.swing.Action;

/**
 * Represents the Copy Action.
 *
 * @version 1.1 03/30/00
 * @author  Mark Davidson
 */
public class CopyAction extends JLFAbstractAction {
    
    private static final String ACTION_COMMAND_KEY_COPY = "copy-command";
    private static final String NAME_COPY = "Copy...";
    private static final String SMALL_ICON_COPY = "Copy16.gif";
    private static final String LARGE_ICON_COPY = "Copy24.gif";
    private static final String SHORT_DESCRIPTION_COPY = "Copy";
    private static final String LONG_DESCRIPTION_COPY = "Create a duplicate of the selected object. This duplicate is now available to be pasted elsewhere.";
    private static final int MNEMONIC_KEY_COPY = 'C';
    
    /**
     * ctor
     */
    public CopyAction() {
        putValue(Action.NAME, NAME_COPY);
        putValue(Action.SMALL_ICON, getIcon(SMALL_ICON_COPY));
        putValue(LARGE_ICON, getIcon(LARGE_ICON_COPY));
        putValue(Action.SHORT_DESCRIPTION, SHORT_DESCRIPTION_COPY);
        putValue(Action.LONG_DESCRIPTION, LONG_DESCRIPTION_COPY);
        putValue(Action.MNEMONIC_KEY, new Integer(MNEMONIC_KEY_COPY));
        putValue(Action.ACTION_COMMAND_KEY, ACTION_COMMAND_KEY_COPY);
    }
}
