public FileNewAction(Window parent) { super(I18n.getText("menus.file.new"), Builder.getIcon("filenew.png", 22)); putValue(SHORT_DESCRIPTION, "Create a new series"); putValue(MNEMONIC_KEY, I18n.getMnemonic("menus.file.new")); putValue(ACCELERATOR_KEY, I18n.getKeyStroke("menus.file.new")); this.parent = parent; }
public EditPasteAction(AbstractEditor editor) { super("Paste", Builder.getIcon("editpaste.png", 22)); putValue(SHORT_DESCRIPTION, "Paste"); putValue(MNEMONIC_KEY, I18n.getMnemonic("menus.edit.paste")); putValue(ACCELERATOR_KEY, I18n.getKeyStroke("menus.edit.paste")); system = Toolkit.getDefaultToolkit().getSystemClipboard(); this.editor = editor; }