comparison src/name/blackcap/clipman/Pasteboard.kt @ 39:2a5808156f99

Remove more deadwood, add non-Mac About dialog.
author David Barts <n5jrn@me.com>
date Fri, 31 Jan 2020 00:06:59 -0800
parents 9890445e4cc4
children 33fbe3a78d84
comparison
equal deleted inserted replaced
38:08eaae2aaf76 39:2a5808156f99
117 /** 117 /**
118 * Read the item in the pasteboard. 118 * Read the item in the pasteboard.
119 * @return a PasteboardItem? object, null if nothing could be read 119 * @return a PasteboardItem? object, null if nothing could be read
120 */ 120 */
121 fun read() : PasteboardItem? { 121 fun read() : PasteboardItem? {
122 /* println("-- BEGIN FLAVORS --")
123 CLIPBOARD.availableDataFlavors.forEach {
124 println(it.mimeType)
125 }
126 println("-- END FLAVORS --") */
127 check() 122 check()
128 val plain = getClipboardData(DataFlavor.stringFlavor) as String? 123 val plain = getClipboardData(DataFlavor.stringFlavor) as String?
129 if (plain == null) { 124 if (plain == null) {
130 return null 125 return null
131 } 126 }