diff options
author | Felipe Heidrich <fheidric> | 2011-05-17 14:47:43 +0000 |
---|---|---|
committer | Felipe Heidrich <fheidric> | 2011-05-17 14:47:43 +0000 |
commit | 6398b350e0ed0187f47c189f1033e20daa49057a (patch) | |
tree | 34adc080729d10758fb2afcdf7ec7b8efd718a98 /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa | |
parent | 2f43fbca79626cdc0620267864adac9baced666e (diff) | |
download | eclipse.platform.swt-6398b350e0ed0187f47c189f1033e20daa49057a.tar.gz eclipse.platform.swt-6398b350e0ed0187f47c189f1033e20daa49057a.tar.xz eclipse.platform.swt-6398b350e0ed0187f47c189f1033e20daa49057a.zip |
Bug 345892 - Selection jumps in treeRoot_AERO_WORK
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa')
6 files changed, 61 insertions, 2 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 7e881e30f9..6e7c3761c8 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 @@ -9663,6 +9663,29 @@ JNIEXPORT jboolean JNICALL OS_NATIVE(objc_1msgSend_1bool__JJJJJ)(JNIEnv *env, jc } #endif +#if (!defined(NO_objc_1msgSend_1bool__IIIIII) && !defined(JNI64)) || (!defined(NO_objc_1msgSend_1bool__JJJJJJ) && defined(JNI64)) +#ifndef JNI64 +JNIEXPORT jboolean JNICALL OS_NATIVE(objc_1msgSend_1bool__IIIIII)(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2, jintLong arg3, jintLong arg4, jintLong arg5) +#else +JNIEXPORT jboolean JNICALL OS_NATIVE(objc_1msgSend_1bool__JJJJJJ)(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2, jintLong arg3, jintLong arg4, jintLong arg5) +#endif +{ + jboolean rc = 0; +#ifndef JNI64 + OS_NATIVE_ENTER(env, that, objc_1msgSend_1bool__IIIIII_FUNC); +#else + OS_NATIVE_ENTER(env, that, objc_1msgSend_1bool__JJJJJJ_FUNC); +#endif + rc = (jboolean)((BOOL (*)(jintLong, jintLong, jintLong, jintLong, jintLong, jintLong))objc_msgSend_bool)(arg0, arg1, arg2, arg3, arg4, arg5); +#ifndef JNI64 + OS_NATIVE_EXIT(env, that, objc_1msgSend_1bool__IIIIII_FUNC); +#else + OS_NATIVE_EXIT(env, that, objc_1msgSend_1bool__JJJJJJ_FUNC); +#endif + return rc; +} +#endif + #if (!defined(NO_objc_1msgSend_1bool__IIIIIII) && !defined(JNI64)) || (!defined(NO_objc_1msgSend_1bool__JJJJJJJ) && defined(JNI64)) #ifndef JNI64 JNIEXPORT jboolean JNICALL OS_NATIVE(objc_1msgSend_1bool__IIIIIII)(JNIEnv *env, jclass that, jintLong arg0, jintLong arg1, jintLong arg2, jintLong arg3, jintLong arg4, jintLong arg5, jintLong arg6) 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 9e2ecaa354..ff1373ef79 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 = 627; -int OS_nativeFunctionCallCount[627]; +int OS_nativeFunctionCount = 628; +int OS_nativeFunctionCallCount[628]; char * OS_nativeFunctionNames[] = { "ATSFontActivateFromFileReference", "AcquireRootMenu", @@ -1089,6 +1089,11 @@ char * OS_nativeFunctionNames[] = { "objc_1msgSend_1bool__JJJJJ", #endif #ifndef JNI64 + "objc_1msgSend_1bool__IIIIII", +#else + "objc_1msgSend_1bool__JJJJJJ", +#endif +#ifndef JNI64 "objc_1msgSend_1bool__IIIIIII", #else "objc_1msgSend_1bool__JJJJJJJ", 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 30ca49c971..88fc61e088 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 @@ -1097,6 +1097,11 @@ typedef enum { objc_1msgSend_1bool__JJJJJ_FUNC, #endif #ifndef JNI64 + objc_1msgSend_1bool__IIIIII_FUNC, +#else + objc_1msgSend_1bool__JJJJJJ_FUNC, +#endif +#ifndef JNI64 objc_1msgSend_1bool__IIIIIII_FUNC, #else objc_1msgSend_1bool__JJJJJJJ_FUNC, diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras index 9732e8b459..64a517a096 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras @@ -2061,6 +2061,13 @@ <arg swt_gen="true"></arg> <retval swt_gen="true"></retval> </method> + <method selector="outlineView:shouldTrackCell:forTableColumn:item:" swt_gen="true"> + <arg swt_gen="true"></arg> + <arg swt_gen="true"></arg> + <arg swt_gen="true"></arg> + <arg swt_gen="true"></arg> + <retval swt_gen="true"></retval> + </method> <method selector="readSelectionFromPasteboard:" swt_gen="true"> <arg swt_gen="true"></arg> <retval swt_gen="true"></retval> @@ -2076,6 +2083,13 @@ <arg swt_gen="true"></arg> <retval swt_gen="true"></retval> </method> + <method selector="tableView:shouldTrackCell:forTableColumn:row:" swt_gen="true"> + <arg swt_gen="true"></arg> + <arg swt_gen="true"></arg> + <arg swt_gen="true"></arg> + <arg swt_gen="true"></arg> + <retval swt_gen="true"></retval> + </method> <method selector="writeSelectionToPasteboard:types:" swt_gen="true"> <arg swt_gen="true"></arg> <arg swt_gen="true"></arg> diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSObject.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSObject.java index cf4f9b0902..c8ffbd8331 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSObject.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSObject.java @@ -74,6 +74,10 @@ public boolean outlineView(NSOutlineView outlineView, id item) { return OS.objc_msgSend_bool(this.id, OS.sel_outlineView_shouldSelectItem_, outlineView != null ? outlineView.id : 0, item != null ? item.id : 0); } +public boolean outlineView(NSOutlineView outlineView, NSCell cell, NSTableColumn tableColumn, id item) { + return OS.objc_msgSend_bool(this.id, OS.sel_outlineView_shouldTrackCell_forTableColumn_item_, outlineView != null ? outlineView.id : 0, cell != null ? cell.id : 0, tableColumn != null ? tableColumn.id : 0, item != null ? item.id : 0); +} + public boolean readSelectionFromPasteboard(NSPasteboard pboard) { return OS.objc_msgSend_bool(this.id, OS.sel_readSelectionFromPasteboard_, pboard != null ? pboard.id : 0); } @@ -86,6 +90,10 @@ public boolean tableView(NSTableView tableView, int /*long*/ row) { return OS.objc_msgSend_bool(this.id, OS.sel_tableView_shouldSelectRow_, tableView != null ? tableView.id : 0, row); } +public boolean tableView(NSTableView tableView, NSCell cell, NSTableColumn tableColumn, int /*long*/ row) { + return OS.objc_msgSend_bool(this.id, OS.sel_tableView_shouldTrackCell_forTableColumn_row_, tableView != null ? tableView.id : 0, cell != null ? cell.id : 0, tableColumn != null ? tableColumn.id : 0, row); +} + public boolean writeSelectionToPasteboard(NSPasteboard pboard, NSArray types) { return OS.objc_msgSend_bool(this.id, OS.sel_writeSelectionToPasteboard_types_, pboard != null ? pboard.id : 0, types != null ? types.id : 0); } 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 6a740d4e42..7c7fb2cb2b 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 @@ -1548,6 +1548,7 @@ public static final int /*long*/ sel_outlineView_shouldEditTableColumn_item_ = s public static final int /*long*/ sel_outlineView_shouldExpandItem_ = sel_registerName("outlineView:shouldExpandItem:"); public static final int /*long*/ sel_outlineView_shouldReorderColumn_toColumn_ = sel_registerName("outlineView:shouldReorderColumn:toColumn:"); public static final int /*long*/ sel_outlineView_shouldSelectItem_ = sel_registerName("outlineView:shouldSelectItem:"); +public static final int /*long*/ sel_outlineView_shouldTrackCell_forTableColumn_item_ = sel_registerName("outlineView:shouldTrackCell:forTableColumn:item:"); public static final int /*long*/ sel_outlineView_validateDrop_proposedItem_proposedChildIndex_ = sel_registerName("outlineView:validateDrop:proposedItem:proposedChildIndex:"); public static final int /*long*/ sel_outlineView_willDisplayCell_forTableColumn_item_ = sel_registerName("outlineView:willDisplayCell:forTableColumn:item:"); public static final int /*long*/ sel_outlineView_writeItems_toPasteboard_ = sel_registerName("outlineView:writeItems:toPasteboard:"); @@ -2058,6 +2059,7 @@ public static final int /*long*/ sel_tableView_setObjectValue_forTableColumn_row public static final int /*long*/ sel_tableView_shouldEditTableColumn_row_ = sel_registerName("tableView:shouldEditTableColumn:row:"); public static final int /*long*/ sel_tableView_shouldReorderColumn_toColumn_ = sel_registerName("tableView:shouldReorderColumn:toColumn:"); public static final int /*long*/ sel_tableView_shouldSelectRow_ = sel_registerName("tableView:shouldSelectRow:"); +public static final int /*long*/ sel_tableView_shouldTrackCell_forTableColumn_row_ = sel_registerName("tableView:shouldTrackCell:forTableColumn:row:"); public static final int /*long*/ sel_tableView_validateDrop_proposedRow_proposedDropOperation_ = sel_registerName("tableView:validateDrop:proposedRow:proposedDropOperation:"); public static final int /*long*/ sel_tableView_willDisplayCell_forTableColumn_row_ = sel_registerName("tableView:willDisplayCell:forTableColumn:row:"); public static final int /*long*/ sel_tableView_writeRowsWithIndexes_toPasteboard_ = sel_registerName("tableView:writeRowsWithIndexes:toPasteboard:"); @@ -3755,6 +3757,8 @@ public static final native boolean objc_msgSend_bool(int /*long*/ id, int /*long /** @method flags=cast */ public static final native boolean objc_msgSend_bool(int /*long*/ id, int /*long*/ sel, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ arg2); /** @method flags=cast */ +public static final native boolean objc_msgSend_bool(int /*long*/ id, int /*long*/ sel, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ arg2, int /*long*/ arg3); +/** @method flags=cast */ public static final native boolean objc_msgSend_bool(int /*long*/ id, int /*long*/ sel, int /*long*/ arg0, int /*long*/ arg1, int /*long*/ arg2, int /*long*/ arg3, int /*long*/ arg4); /** @method flags=cast */ public static final native boolean objc_msgSend_bool(int /*long*/ id, int /*long*/ sel, short arg0); |