summaryrefslogtreecommitdiffstats
path: root/bundles
diff options
context:
space:
mode:
authorSteve Northover <steve>2007-04-05 18:37:43 +0000
committerSteve Northover <steve>2007-04-05 18:37:43 +0000
commit6d690f42af6828d15045c7a5e867f4f5bbd4f7ef (patch)
tree59ab780488ba4bdbca50c036248e47feca205182 /bundles
parenta2be781b6dd32de4e7e15ba616b1cc49fdc50683 (diff)
downloadeclipse.platform.swt-6d690f42af6828d15045c7a5e867f4f5bbd4f7ef.tar.gz
eclipse.platform.swt-6d690f42af6828d15045c7a5e867f4f5bbd4f7ef.tar.xz
eclipse.platform.swt-6d690f42af6828d15045c7a5e867f4f5bbd4f7ef.zip
*** empty log message ***
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.carbon.OS.properties4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os.c29
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_custom.h5
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.c5
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_stats.h1
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/carbon/org/eclipse/swt/internal/carbon/OS.java1
6 files changed, 41 insertions, 4 deletions
diff --git a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.carbon.OS.properties b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.carbon.OS.properties
index 98777ffdeb..80fdada384 100644
--- a/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.carbon.OS.properties
+++ b/bundles/org.eclipse.swt.tools/JNI Generation/org/eclipse/swt/tools/internal/org.eclipse.swt.internal.carbon.OS.properties
@@ -2842,6 +2842,10 @@ OS_HIComboBoxRemoveItemAtIndex=
OS_HIComboBoxRemoveItemAtIndex_0=cast=(HIViewRef)
OS_HIComboBoxRemoveItemAtIndex_1=cast=(CFIndex)
+OS_HIComboBoxSetListVisible=flags=dynamic
+OS_HIComboBoxSetListVisible_0=cast=HIViewRef
+OS_HIComboBoxSetListVisible_1=
+
OS_HICopyAccessibilityRoleDescription=
OS_HICopyAccessibilityRoleDescription_0=cast=(CFStringRef)
OS_HICopyAccessibilityRoleDescription_1=cast=(CFStringRef)
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 143c83f29c..91e0b7a48f 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
@@ -6934,6 +6934,35 @@ JNIEXPORT jint JNICALL OS_NATIVE(HIComboBoxRemoveItemAtIndex)
}
#endif
+#ifndef NO_HIComboBoxSetListVisible
+JNIEXPORT jint JNICALL OS_NATIVE(HIComboBoxSetListVisible)
+ (JNIEnv *env, jclass that, jint arg0, jboolean arg1)
+{
+ jint rc = 0;
+ OS_NATIVE_ENTER(env, that, HIComboBoxSetListVisible_FUNC);
+/*
+ rc = (jint)HIComboBoxSetListVisible((HIViewRef)arg0, arg1);
+*/
+ {
+ static int initialized = 0;
+ static CFBundleRef bundle = NULL;
+ typedef jint (*FPTR)(HIViewRef, jboolean);
+ static FPTR fptr;
+ rc = 0;
+ if (!initialized) {
+ if (!bundle) bundle = CFBundleGetBundleWithIdentifier(CFSTR(HIComboBoxSetListVisible_LIB));
+ if (bundle) fptr = (FPTR)CFBundleGetFunctionPointerForName(bundle, CFSTR("HIComboBoxSetListVisible"));
+ initialized = 1;
+ }
+ if (fptr) {
+ rc = (jint)(*fptr)((HIViewRef)arg0, arg1);
+ }
+ }
+ OS_NATIVE_EXIT(env, that, HIComboBoxSetListVisible_FUNC);
+ return rc;
+}
+#endif
+
#ifndef NO_HICopyAccessibilityRoleDescription
JNIEXPORT jint JNICALL OS_NATIVE(HICopyAccessibilityRoleDescription)
(JNIEnv *env, jclass that, jint arg0, jint arg1)
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_custom.h b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_custom.h
index 32a0c49c53..edd6ce7d68 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_custom.h
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/carbon/library/os_custom.h
@@ -10,16 +10,17 @@
*******************************************************************************/
/* Libraries for dynamic loaded functions */
+#define CGBitmapContextCreateImage_LIB "com.apple.Carbon"
#define CGImageCreateWithImageInRect_LIB "com.apple.Carbon"
#define DataBrowserChangeAttributes_LIB "com.apple.Carbon"
#define DataBrowserGetAttributes_LIB "com.apple.Carbon"
#define DataBrowserGetMetric_LIB "com.apple.Carbon"
#define DataBrowserSetMetric_LIB "com.apple.Carbon"
#define GetIconRefFromIconFamilyPtr_LIB "com.apple.Carbon"
+#define HIComboBoxSetListVisible_LIB "com.apple.Carbon"
#define HICreateTransformedCGImage_LIB "com.apple.Carbon"
#define HIThemeSetFill_LIB "com.apple.Carbon"
#define HIThemeSetTextFill_LIB "com.apple.Carbon"
-#define NavDialogSetFilterTypeIdentifiers_LIB "com.apple.Carbon"
#define LSCopyAllRoleHandlersForContentType_LIB "com.apple.Carbon"
#define LSOpenItemsWithRole_LIB "com.apple.Carbon"
-#define CGBitmapContextCreateImage_LIB "com.apple.Carbon"
+#define NavDialogSetFilterTypeIdentifiers_LIB "com.apple.Carbon"
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 74eacacb80..e8df5d4bcd 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 = 894;
-int OS_nativeFunctionCallCount[894];
+int OS_nativeFunctionCount = 895;
+int OS_nativeFunctionCallCount[895];
char * OS_nativeFunctionNames[] = {
"AECountItems",
"AEGetNthPtr",
@@ -495,6 +495,7 @@ char * OS_nativeFunctionNames[] = {
"HIComboBoxGetItemCount",
"HIComboBoxInsertTextItemAtIndex",
"HIComboBoxRemoveItemAtIndex",
+ "HIComboBoxSetListVisible",
"HICopyAccessibilityRoleDescription",
"HICreateTransformedCGImage",
"HIObjectCopyClassID",
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 828a9358a5..10d23a5ec8 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
@@ -503,6 +503,7 @@ typedef enum {
HIComboBoxGetItemCount_FUNC,
HIComboBoxInsertTextItemAtIndex_FUNC,
HIComboBoxRemoveItemAtIndex_FUNC,
+ HIComboBoxSetListVisible_FUNC,
HICopyAccessibilityRoleDescription_FUNC,
HICreateTransformedCGImage_FUNC,
HIObjectCopyClassID_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 fbbf9926c6..352fbfe906 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
@@ -1442,6 +1442,7 @@ public static final native int HIComboBoxCreate(CGRect boundsRect, int text, Con
public static final native int HIComboBoxGetItemCount(int inComboBox);
public static final native int HIComboBoxInsertTextItemAtIndex(int inComboBox, int inIndex, int inText);
public static final native int HIComboBoxRemoveItemAtIndex(int inComboBox, int inIndex);
+public static final native int HIComboBoxSetListVisible (int inComboBox, boolean inVisible);
public static final native int HICopyAccessibilityRoleDescription(int inRole, int inSubrole);
public static final native int HIObjectCopyClassID(int inObject);
public static final native int HIObjectCreate(int inClassID, int inConstructData, int[] outObject);