| Summary: | Use JNI add an window callback function to Shell, function can not be called. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Fan Peng <pfancdl> | ||||||||
| Component: | SWT | Assignee: | Silenio Quarti <Silenio_Quarti> | ||||||||
| Status: | RESOLVED FIXED | QA Contact: | Lakshmi P Shanmugam <lshanmug> | ||||||||
| Severity: | normal | ||||||||||
| Priority: | P3 | CC: | eclipse.felipe, linyunz, mukund, pwebster, Silenio_Quarti, skovatch, stephen.francisco | ||||||||
| Version: | 3.6.1 | Flags: | eclipse.felipe:
review+
|
||||||||
| Target Milestone: | 3.6.2 | ||||||||||
| Hardware: | Macintosh | ||||||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Fan Peng
Created attachment 185299 [details]
Native code sample.
Created attachment 185300 [details]
Eclipse rcp code sample.
I have investigated carbon SWT code between 3.5.2 and 3.6.1.This issue is caused by Control.helpProc.If we havn't set tooltiptext to Shell, this method will return OS.noErr in 3.5.2 and return OS.eventNotHandledErr in 3.6.1 .The window callback function only called when this method return OS.noErr. When Shell is created, the swt created a UserPane control on the Shell and used HMInstallControlContentCallback to add an control call back function to the UserPane.The control call back function is problematic method Control.helpProc. Finally I have represented this issue by pure carbon code.similar As Shell code,I create an carbon window,then create an user panel on the window.Add window call back function on the window and controll call back function on the user panel.If these call back function always return 0,when you hover mouse on the window,the control call back will be called first,then the window call back will be called .If the control call back function not return 0, the window call back will never called.These code can be seen in Attachments:Native code sample. Though it's an carbon issue,we hope swt can supply an patch to support this. Silenio, do you think you can help ? Created attachment 185386 [details] possible fix This bug was caused by the fix for bug#136932. Please try this patch out. This fix works correctly. Fixed > 20101220. Only in HEAD (3.7). Reopening to fix in 3.6.2. Fixed in R3_6_maintenance. |