diff options
author | Veronika Irvine <veronika> | 2005-01-06 13:40:02 +0000 |
---|---|---|
committer | Veronika Irvine <veronika> | 2005-01-06 13:40:02 +0000 |
commit | 4208751ef87a0b15b887e87bdd53c8bd6581ab59 (patch) | |
tree | c4c42a572387cb8d0bfe75f736b75e30a90c7c22 /bundles | |
parent | 539f8066e84eff411589fe6d7fd1d74d81f3a377 (diff) | |
download | eclipse.platform.swt-4208751ef87a0b15b887e87bdd53c8bd6581ab59.tar.gz eclipse.platform.swt-4208751ef87a0b15b887e87bdd53c8bd6581ab59.tar.xz eclipse.platform.swt-4208751ef87a0b15b887e87bdd53c8bd6581ab59.zip |
add GetDataBrowserListViewDisclosureColumn
Diffstat (limited to 'bundles')
5 files changed, 29 insertions, 2 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 dfaef06111..a6d31038a4 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 @@ -1841,6 +1841,11 @@ OS_GetDataBrowserItems_2=cast=(Boolean) OS_GetDataBrowserItems_3=cast=(DataBrowserItemState) OS_GetDataBrowserItems_4=cast=(Handle) +OS_GetDataBrowserListViewDisclosureColumn= +OS_GetDataBrowserListViewDisclosureColumn_0=cast=ControlRef +OS_GetDataBrowserListViewDisclosureColumn_1=cast=(DataBrowserTableViewColumnID *) +OS_GetDataBrowserListViewDisclosureColumn_2=cast=Boolean * + OS_GetDataBrowserListViewHeaderBtnHeight= OS_GetDataBrowserListViewHeaderBtnHeight_0=cast=(ControlRef) OS_GetDataBrowserListViewHeaderBtnHeight_1= 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 7acce79115..ff96462cdb 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 @@ -4303,6 +4303,25 @@ JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserItems) } #endif +#ifndef NO_GetDataBrowserListViewDisclosureColumn +JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserListViewDisclosureColumn) + (JNIEnv *env, jclass that, jint arg0, jintArray arg1, jbooleanArray arg2) +{ + jint *lparg1=NULL; + jboolean *lparg2=NULL; + jint rc = 0; + OS_NATIVE_ENTER(env, that, GetDataBrowserListViewDisclosureColumn_FUNC); + if (arg1) if ((lparg1 = (*env)->GetIntArrayElements(env, arg1, NULL)) == NULL) goto fail; + if (arg2) if ((lparg2 = (*env)->GetBooleanArrayElements(env, arg2, NULL)) == NULL) goto fail; + rc = (jint)GetDataBrowserListViewDisclosureColumn((ControlRef)arg0, (DataBrowserTableViewColumnID *)lparg1, (Boolean *)lparg2); +fail: + if (arg2 && lparg2) (*env)->ReleaseBooleanArrayElements(env, arg2, lparg2, 0); + if (arg1 && lparg1) (*env)->ReleaseIntArrayElements(env, arg1, lparg1, 0); + OS_NATIVE_EXIT(env, that, GetDataBrowserListViewDisclosureColumn_FUNC); + return rc; +} +#endif + #ifndef NO_GetDataBrowserListViewHeaderBtnHeight JNIEXPORT jint JNICALL OS_NATIVE(GetDataBrowserListViewHeaderBtnHeight) (JNIEnv *env, jclass that, jint arg0, jshortArray arg1) 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 6406e174e8..977d05741a 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 = 792; -int OS_nativeFunctionCallCount[792]; +int OS_nativeFunctionCount = 793; +int OS_nativeFunctionCallCount[793]; char * OS_nativeFunctionNames[] = { "AECountItems", "AEGetNthPtr", @@ -329,6 +329,7 @@ char * OS_nativeFunctionNames[] = { "GetDataBrowserItemPartBounds", "GetDataBrowserItemState", "GetDataBrowserItems", + "GetDataBrowserListViewDisclosureColumn", "GetDataBrowserListViewHeaderBtnHeight", "GetDataBrowserListViewHeaderDesc", "GetDataBrowserScrollBarInset", 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 44a196385e..ccbd113d1e 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 @@ -333,6 +333,7 @@ typedef enum { GetDataBrowserItemPartBounds_FUNC, GetDataBrowserItemState_FUNC, GetDataBrowserItems_FUNC, + GetDataBrowserListViewDisclosureColumn_FUNC, GetDataBrowserListViewHeaderBtnHeight_FUNC, GetDataBrowserListViewHeaderDesc_FUNC, GetDataBrowserScrollBarInset_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 4934e17261..09c439e133 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 @@ -1004,6 +1004,7 @@ public static final native int GetDataBrowserItemDataButtonValue(int itemData, s public static final native int GetDataBrowserItemPartBounds(int cHandle, int item, int property, int part, Rect bounds); public static final native int GetDataBrowserItems(int browser, int container, boolean recurse, int state, int items); public static final native int GetDataBrowserItemState(int browser, int item, int [] state); +public static final native int GetDataBrowserListViewDisclosureColumn(int browser, int [] column, boolean [] expandableRows); public static final native int GetDataBrowserListViewHeaderBtnHeight(int browser, short [] height); public static final native int GetDataBrowserListViewHeaderDesc(int browser, int column, DataBrowserListViewHeaderDesc desc); public static final native int GetDataBrowserTableViewItemID(int browser, int row, int [] item); |