diff options
author | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-09-28 10:33:42 -0400 |
---|---|---|
committer | Silenio Quarti <silenio_quarti@ca.ibm.com> | 2012-09-28 10:33:42 -0400 |
commit | 71e1311cbbe9e51dc606d59ab142f6565e43ed78 (patch) | |
tree | 31f9b4fb8957b22c2607013ea294c936f334098d /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa | |
parent | c7cbced32992f5cff36e25ce2932835717af3cbb (diff) | |
download | eclipse.platform.swt-71e1311cbbe9e51dc606d59ab142f6565e43ed78.tar.gz eclipse.platform.swt-71e1311cbbe9e51dc606d59ab142f6565e43ed78.tar.xz eclipse.platform.swt-71e1311cbbe9e51dc606d59ab142f6565e43ed78.zip |
Bug 389702 - Drag and drop a tab item to desktop/Finder, a text file is created, not a web link is generated. - use OS const for public.url
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa')
4 files changed, 18 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os.c index be188f37e4..4265e29710 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os.c @@ -6276,6 +6276,18 @@ JNIEXPORT jintLong JNICALL OS_NATIVE(kCTParagraphStyleAttributeName) } #endif +#ifndef NO_kUTTypeURL +JNIEXPORT jintLong JNICALL OS_NATIVE(kUTTypeURL) + (JNIEnv *env, jclass that) +{ + jintLong rc = 0; + OS_NATIVE_ENTER(env, that, kUTTypeURL_FUNC); + rc = (jintLong)kUTTypeURL; + OS_NATIVE_EXIT(env, that, kUTTypeURL_FUNC); + return rc; +} +#endif + #if (!defined(NO_memmove__ILorg_eclipse_swt_internal_cocoa_CFRange_2I) && !defined(JNI64)) || (!defined(NO_memmove__JLorg_eclipse_swt_internal_cocoa_CFRange_2J) && defined(JNI64)) #ifndef JNI64 JNIEXPORT void JNICALL OS_NATIVE(memmove__ILorg_eclipse_swt_internal_cocoa_CFRange_2I)(JNIEnv *env, jclass that, jintLong arg0, jobject arg1, jintLong arg2) diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.c b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.c index 50bba2969c..bc7ced2440 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.c @@ -465,6 +465,7 @@ char * OS_nativeFunctionNames[] = { "kCTForegroundColorAttributeName", "kCTParagraphStyleAttributeName", "kTISPropertyUnicodeKeyLayoutData", + "kUTTypeURL", #ifndef JNI64 "memmove__ILorg_eclipse_swt_internal_cocoa_CFRange_2I", #else diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.h b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.h index fa14656ec9..908ae58737 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.h +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/library/os_stats.h @@ -475,6 +475,7 @@ typedef enum { kCTForegroundColorAttributeName_FUNC, kCTParagraphStyleAttributeName_FUNC, kTISPropertyUnicodeKeyLayoutData_FUNC, + kUTTypeURL_FUNC, #ifndef JNI64 memmove__ILorg_eclipse_swt_internal_cocoa_CFRange_2I_FUNC, #else diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java index 59bfbd3c75..426a229703 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java @@ -535,6 +535,10 @@ public static final native long /*int*/ kCFTypeDictionaryKeyCallBacks(); /** @method flags=const address*/ public static final native long /*int*/ kCFTypeDictionaryValueCallBacks(); +/** @method flags=const */ +public static final native long /*int*/ kUTTypeURL(); +public static final NSString kUTTypeURL = new NSString(kUTTypeURL()); + /** Objective-C runtime */ /** |