| Summary: | [Forms] FormEditor focus behavior ignores IManagedForm for IFormPage pages | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Kahmyong Moon <kmoon> | ||||
| Component: | User Assistance | Assignee: | platform-ua-inbox <platform-ua-inbox> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | |||||
| Severity: | minor | ||||||
| Priority: | P3 | CC: | cgold, pwebster | ||||
| Version: | 3.5.2 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=509486 | ||||||
| Whiteboard: | stalebug | ||||||
| Attachments: |
|
||||||
|
Description
Kahmyong Moon
Can you attach an example plug-in which illustrates the problem? Created attachment 182943 [details]
FormEditor focus behavior example
Source code for a simple example FormEditor, demonstrating inconsistent focus behavior.
The form consists of two identical pages containing two SectionPart objects, each containing a Composite with two Text controls and a Button control.
The left SectionPart attempts to control focus using IFormPart.setFocus(). This only works when programmatically triggered using the "Focus IFormPart" button.
The right SectionPart attempts to control focus using Control.setFocus(). This works when the Section client is focused (by clicking on it, for example).
Flipping pages should demonstrate the focus behavior of FormEditor.setFocus() (inherited from MultiPageEditorPart), which is to focus on the first focusable control. (In this case, the first Section's description.) ManagedForm.setFocus() is not used.
I don't recall why this behavior bothered me originally. Perhaps I expected too much of the IFormPart focus mechanism.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug. If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |