diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/Clipboard.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/Clipboard.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/Clipboard.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/Clipboard.java index 1e6cb58bed..8b107b42f6 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/Clipboard.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/cocoa/org/eclipse/swt/dnd/Clipboard.java @@ -289,7 +289,7 @@ public Object getContents(Transfer transfer, int clipboards) { type.isEqual(OS.NSRTFPboardType) || type.isEqual(OS.NSHTMLPboardType)) { tdata.data = pasteboard.stringForType(type); - } else if (type.isEqual(OS.NSFilenamesPboardType) || type.getString().equals("public.file-url")) { + } else if (type.isEqual(OS.NSFilenamesPboardType) || type.isEqual(OS.kUTTypeFileURL)) { tdata.data = new NSArray(pasteboard.propertyListForType(OS.NSFilenamesPboardType).id); } else if (type.isEqual(OS.NSURLPboardType) || type.isEqual(OS.kUTTypeURL)) { tdata.data = NSURL.URLFromPasteboard(pasteboard); @@ -462,7 +462,7 @@ public void setContents(Object[] data, Transfer[] dataTypes, int clipboards) { } else if (dataType.isEqual(OS.NSURLPboardType) || dataType.isEqual(OS.kUTTypeURL)) { NSURL url = (NSURL) tdata; url.writeToPasteboard(pasteboard); - } else if (dataType.isEqual(OS.NSFilenamesPboardType) || dataType.getString().equals("public.file-url")) { + } else if (dataType.isEqual(OS.NSFilenamesPboardType) || dataType.isEqual(OS.kUTTypeFileURL)) { pasteboard.setPropertyList((NSArray) tdata, OS.NSFilenamesPboardType); } else { pasteboard.setData((NSData) tdata, dataType); |