/jEdit/tags/jedit-4-3-pre5/macros/Files/Copy_Name_to_Clipboard.bsh
Unknown | 28 lines | 22 code | 6 blank | 0 comment | 0 complexity | 9e450b86983cbf677123e831e3c0bcec MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
- /*
- * Copy_Name_to_Clipboad.bsh - Copies the current buffer's filename
- * to the clipboard.
- *
- * Copyright (C) 2002-2004 Ollie Rutherfurd <oliver@rutherfurd.net>
- *
- * $Id: Copy_Name_to_Clipboard.bsh 5016 2004-04-09 17:10:15Z spestov $
- */
- void copyBufferNameToClipboard(Buffer buffer)
- {
- Registers.setRegister('$',buffer.getName());
- HistoryModel.getModel("clipboard").addItem(buffer.getName());
- }
- copyBufferNameToClipboard(buffer);
- /*
- <listitem>
- <para><filename>Copy_Name_to_Clipboad.bsh</filename></para>
- <abstract><para>Copies the current buffer's filename
- to the clipboard.
- </para></abstract>
- </listitem>
- */