diff options
author | Silenio Quarti <silenio> | 2009-09-23 18:50:26 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2009-09-23 18:50:26 +0000 |
commit | de99758dc483ca2e9c030e16d8437ab862b4c593 (patch) | |
tree | 18a48920f3a882a9105389a2516bd47779e3458f /bundles/org.eclipse.swt/Eclipse SWT PI | |
parent | 61e9d1e36b247e8d7212c985a309e271586ecf1b (diff) | |
download | eclipse.platform.swt-de99758dc483ca2e9c030e16d8437ab862b4c593.tar.gz eclipse.platform.swt-de99758dc483ca2e9c030e16d8437ab862b4c593.tar.xz eclipse.platform.swt-de99758dc483ca2e9c030e16d8437ab862b4c593.zip |
268687 - SWT Mac dock icon cannot be hidden
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI')
4 files changed, 33 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c index 750eb59d80..9ac7f97592 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c @@ -1236,6 +1236,30 @@ JNIEXPORT jint JNICALL OS_NATIVE(CFArrayGetValueAtIndex) } #endif +#ifndef NO_CFBundleGetIdentifier +JNIEXPORT jint JNICALL OS_NATIVE(CFBundleGetIdentifier) + (JNIEnv *env, jclass that, jint arg0) +{ + jint rc = 0; + OS_NATIVE_ENTER(env, that, CFBundleGetIdentifier_FUNC); + rc = (jint)CFBundleGetIdentifier((CFBundleRef)arg0); + OS_NATIVE_EXIT(env, that, CFBundleGetIdentifier_FUNC); + return rc; +} +#endif + +#ifndef NO_CFBundleGetMainBundle +JNIEXPORT jint JNICALL OS_NATIVE(CFBundleGetMainBundle) + (JNIEnv *env, jclass that) +{ + jint rc = 0; + OS_NATIVE_ENTER(env, that, CFBundleGetMainBundle_FUNC); + rc = (jint)CFBundleGetMainBundle(); + OS_NATIVE_EXIT(env, that, CFBundleGetMainBundle_FUNC); + return rc; +} +#endif + #ifndef NO_CFDataGetBytePtr JNIEXPORT jint JNICALL OS_NATIVE(CFDataGetBytePtr) (JNIEnv *env, jclass that, jint arg0) diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.c b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.c index 5cae8955f9..4cfce5d83d 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.c +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.c @@ -14,8 +14,8 @@ #ifdef NATIVE_STATS -int OS_nativeFunctionCount = 986; -int OS_nativeFunctionCallCount[986]; +int OS_nativeFunctionCount = 988; +int OS_nativeFunctionCallCount[988]; char * OS_nativeFunctionNames[] = { "AECoerceDesc", "AECountItems", @@ -94,6 +94,8 @@ char * OS_nativeFunctionNames[] = { "CFArrayCreateMutable", "CFArrayGetCount", "CFArrayGetValueAtIndex", + "CFBundleGetIdentifier", + "CFBundleGetMainBundle", "CFDataGetBytePtr", "CFDataGetBytes", "CFDataGetLength", diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.h b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.h index e91f001105..5ff0218bc2 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.h +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.h @@ -102,6 +102,8 @@ typedef enum { CFArrayCreateMutable_FUNC, CFArrayGetCount_FUNC, CFArrayGetValueAtIndex_FUNC, + CFBundleGetIdentifier_FUNC, + CFBundleGetMainBundle_FUNC, CFDataGetBytePtr_FUNC, CFDataGetBytes_FUNC, CFDataGetLength_FUNC, diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/OS.java index 47bb3227a8..68d15074bb 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/OS.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/OS.java @@ -1504,6 +1504,9 @@ public static final native int CFArrayCreateMutable(int allocator, int capacity, public static final native int CFArrayGetCount(int theArray); /** @param theArray cast=(CFArrayRef) */ public static final native int CFArrayGetValueAtIndex(int theArray, int idx); +public static final native int CFBundleGetMainBundle(); +/** @param bundle cast=(CFBundleRef) */ +public static final native int CFBundleGetIdentifier(int bundle); /** * @param theData cast=(CFDataRef) * @param range flags=struct |