| Summary: | [RCP] Presentation API and implementation needs to nail down when setFocus is called | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Nick Edgar <n.a.edgar> |
| Component: | UI | Assignee: | Stefan Xenos <sxenos> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P2 | CC: | michaelvanmeekeren |
| Version: | 3.0 | Keywords: | helpwanted |
| Target Milestone: | 3.0 RC2 | ||
| Hardware: | PC | ||
| OS: | Windows 2000 | ||
| Whiteboard: | |||
| Bug Depends on: | 55816, 56378, 56979, 57659, 58030, 60970, 65667 | ||
| Bug Blocks: | |||
|
Description
Nick Edgar
I believe the following is desirable: 1. Focus should be set by the workbench when opening a view. 2. I suppose this is open for discussion, but I think it would be reasonable for the presentation to set focus when the user clicks on some presentation-managed control (like the tabs or chevron). 3. I agree that the workbench should handle this case. Is this still M8 critical? There are still some focus problems, but we'll live with them for M8. Should address them all for M9. Let's use this PR as the gathering point and mark specific PRs as blocking this one. Pointing out the obvious but I think our plan here needs to (where appropriate) do exactly what 2.1 did. Obviously somethings are new but the goal is for things that are part of 2.1.x they should remain the same. Found another issue: In response to a part's control gaining focus, PartPane.requestActivation calls page.setActivePart, but this results in part.setFocus() being called. This should only be called when switching parts via other means than clicking within the part itself. Need to finalize this for RC1. Note: we need to deal with the case where the active part is closed. Currently, we temporarily move focus to a bogus widget until the next part in the activation list becomes active and grabs focus. This degrades performance, causes flicker, blah, blah, blah. It isn't a regression (Eclipse 2.1 used this pattern too), but the pattern is wrong. There should be exactly one focus change when you close a part. remove 59511 as a blocker for this as it is a separate bug. nick can we close this? Yes. If there are further focus problems, we'll open new PRs. Closing. |