| Summary: | "New > Untitled Text File" via wizard does not give focus to editor | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Markus Keller <markus.kell.r> | ||||
| Component: | SWT | Assignee: | Scott Kovatch <skovatch> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Silenio Quarti <Silenio_Quarti> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | daniel_megert, hudsonr, pwebster, remy.suen, sandipchitale, skovatch | ||||
| Version: | 3.6 | ||||||
| Target Milestone: | 3.7 M1 | ||||||
| Hardware: | PC | ||||||
| OS: | Mac OS X | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Markus Keller
Works fine for me on Windows XP using N20100507-2000. Markus, can you check since when this is broken? Markus, please quickly debug on your Mac. I can only reproduce the problem with the new editor opening "behind" the active editor in my dev workspace. Will not pursue this problem further for now. In another workspace, in the target, and in 3.5, the editor is opened and its tab comes to front, but the StyledText doesn't take keyboard focus. Debugging this revealed that StyledText#setFocus() is called while the wizard shell is still open. On Windows, this stores the StyledText in Decorations.savedFocus, and when the wizard shell is closed, Decoration#restoreFocus() is executed. On Cocoa, Decoration#restoreFocus() is only called from Shell#open(). That's not enough. Moving to SWT. Created attachment 168209 [details]
work in progress
This addresses the bug by adding the save/restoreFocus similar to what Carbon was doing. It probably needs more testing than we can give it for rc1, though.
Fixed > 20100715, using the attached patch. *** Bug 303677 has been marked as a duplicate of this bug. *** This fix causes bug#322151. *** Bug 347166 has been marked as a duplicate of this bug. *** |