| Summary: | TrayDialog help not registering correct event listener | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Paul Kendall <pkendall64> | ||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P3 | ||||||
| Version: | 1.2 | ||||||
| Target Milestone: | 1.3 M3 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Paul Kendall
Fixed in CVS HEAD Fixing the UntypedEventAdapter to recognise SWT.Help does not fix the problem completely. The problem now is that Control, Menu & MenuItem are sending typed events and the TrayDialog has a listener that is executed when the help button is clicked, but it then iterates the control stack looking for a control with registered untyped SWT.Help events. The Fix to this is to change the helpPressed() method of TrayDialog to look for typed events. I will attach a patch that fixes the problem for me. Created attachment 150287 [details]
Patch to fix the way that TrayDialog determines which control to send the help event to
Please ignore my attempts to explain the problem in comment #2! The problem is that TrayDialog is looking for the wrong type of evenets. It is looking for untyped events when typed events are being fired. I think that this is just a difference in the way that RAP works compared to SWT. So, the patch stands and fixes the problem for me. Sorry for not getting that right in the first place. The issue should be solved now. Widget#isListening() is fixed by now also taking typed events into account. |