diff options
author | Silenio Quarti <silenio> | 2008-08-05 22:39:36 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2008-08-05 22:39:36 +0000 |
commit | 0a837d7eccf8d9de799668a5d02f6bdc72fa215d (patch) | |
tree | 01702936d392bfc6bd7c8f035a3f7d9bb5b003d9 /bundles | |
parent | b821c89413417666f97ca669bcc863358a70cf92 (diff) | |
download | eclipse.platform.swt-0a837d7eccf8d9de799668a5d02f6bdc72fa215d.tar.gz eclipse.platform.swt-0a837d7eccf8d9de799668a5d02f6bdc72fa215d.tar.xz eclipse.platform.swt-0a837d7eccf8d9de799668a5d02f6bdc72fa215d.zip |
program support natives
Diffstat (limited to 'bundles')
5 files changed, 39 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.cocoa.OS.properties b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.cocoa.OS.properties index 80c62169df..76e8e3b01f 100755 --- a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.cocoa.OS.properties +++ b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.cocoa.OS.properties @@ -832,6 +832,11 @@ OS_NSPrintSpoolJob=flags=const OS_NSRTFPboardType=flags=const +OS_NSSearchPathForDirectoriesInDomains= +OS_NSSearchPathForDirectoriesInDomains_0= +OS_NSSearchPathForDirectoriesInDomains_1= +OS_NSSearchPathForDirectoriesInDomains_2= + OS_NSStrikethroughColorAttributeName=flags=const OS_NSStrikethroughStyleAttributeName=flags=const @@ -840,6 +845,8 @@ OS_NSStringPboardType=flags=const OS_NSTIFFPboardType=flags=const +OS_NSTemporaryDirectory= + OS_NSURLPboardType=flags=const OS_NSUnderlineColorAttributeName=flags=const 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 3079947b3e..139dfff3f5 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 @@ -612,6 +612,18 @@ JNIEXPORT jint JNICALL OS_NATIVE(NSRTFPboardType) } #endif +#ifndef NO_NSSearchPathForDirectoriesInDomains +JNIEXPORT jint JNICALL OS_NATIVE(NSSearchPathForDirectoriesInDomains) + (JNIEnv *env, jclass that, jint arg0, jint arg1, jboolean arg2) +{ + jint rc = 0; + OS_NATIVE_ENTER(env, that, NSSearchPathForDirectoriesInDomains_FUNC); + rc = (jint)NSSearchPathForDirectoriesInDomains(arg0, arg1, arg2); + OS_NATIVE_EXIT(env, that, NSSearchPathForDirectoriesInDomains_FUNC); + return rc; +} +#endif + #ifndef NO_NSStrikethroughColorAttributeName JNIEXPORT jint JNICALL OS_NATIVE(NSStrikethroughColorAttributeName) (JNIEnv *env, jclass that) @@ -660,6 +672,18 @@ JNIEXPORT jint JNICALL OS_NATIVE(NSTIFFPboardType) } #endif +#ifndef NO_NSTemporaryDirectory +JNIEXPORT jint JNICALL OS_NATIVE(NSTemporaryDirectory) + (JNIEnv *env, jclass that) +{ + jint rc = 0; + OS_NATIVE_ENTER(env, that, NSTemporaryDirectory_FUNC); + rc = (jint)NSTemporaryDirectory(); + OS_NATIVE_EXIT(env, that, NSTemporaryDirectory_FUNC); + return rc; +} +#endif + #ifndef NO_NSURLPboardType JNIEXPORT jint JNICALL OS_NATIVE(NSURLPboardType) (JNIEnv *env, jclass that) 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 3cf2a00e89..ad0cbd7cb6 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 @@ -14,8 +14,8 @@ #ifdef NATIVE_STATS -int OS_nativeFunctionCount = 351; -int OS_nativeFunctionCallCount[351]; +int OS_nativeFunctionCount = 353; +int OS_nativeFunctionCallCount[353]; char * OS_nativeFunctionNames[] = { "CGWarpMouseCursorPosition", "CloseRgn", @@ -58,10 +58,12 @@ char * OS_nativeFunctionNames[] = { "NSPrintSavePath", "NSPrintSpoolJob", "NSRTFPboardType", + "NSSearchPathForDirectoriesInDomains", "NSStrikethroughColorAttributeName", "NSStrikethroughStyleAttributeName", "NSStringPboardType", "NSTIFFPboardType", + "NSTemporaryDirectory", "NSURLPboardType", "NSUnderlineColorAttributeName", "NSUnderlineStyleAttributeName", 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 e745700383..1fd7c919cf 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 @@ -66,10 +66,12 @@ typedef enum { NSPrintSavePath_FUNC, NSPrintSpoolJob_FUNC, NSRTFPboardType_FUNC, + NSSearchPathForDirectoriesInDomains_FUNC, NSStrikethroughColorAttributeName_FUNC, NSStrikethroughStyleAttributeName_FUNC, NSStringPboardType_FUNC, NSTIFFPboardType_FUNC, + NSTemporaryDirectory_FUNC, NSURLPboardType_FUNC, NSUnderlineColorAttributeName_FUNC, NSUnderlineStyleAttributeName_FUNC, 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 04e039954f..ef18d5da8b 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 @@ -10389,7 +10389,7 @@ public static final native int NSFileTypeForHFSTypeCode(int hfsFileTypeCode); //public static final native int NSReturnAddress(int frame); //public static final native int NSRoundDownToMultipleOfPageSize(int bytes); //public static final native int NSRoundUpToMultipleOfPageSize(int bytes); -//public static final native int NSSearchPathForDirectoriesInDomains(int directory, int domainMask, boolean expandTilde); +public static final native int NSSearchPathForDirectoriesInDomains(int directory, int domainMask, boolean expandTilde); //public static final native int NSSelectorFromString(int aSelectorName); //public static final native void NSSetUncaughtExceptionHandler(int dummy); //public static final native void NSSetZoneName(int zone, int name); @@ -10436,7 +10436,7 @@ public static final native int NSFileTypeForHFSTypeCode(int hfsFileTypeCode); //public static final native int NSSwapLong(int inv); //public static final native long NSSwapLongLong(long inv); //public static final native short NSSwapShort(short inv); -//public static final native int NSTemporaryDirectory(); +public static final native int NSTemporaryDirectory(); //public static final native NSRange NSUnionRange(NSRange range1, NSRange range2); //public static final native NSRect NSUnionRect(NSRect aRect, NSRect bRect); //public static final native int NSUserName(); |