| Summary: | Save action in main toolbar is not enabled after Organize Imports | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Markus Keller <markus.kell.r> |
| Component: | SWT | Assignee: | Scott Kovatch <skovatch> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert, eclipse.felipe |
| Version: | 3.7 | ||
| Target Milestone: | 3.7 M5 | ||
| Hardware: | PC | ||
| OS: | Mac OS X | ||
| Whiteboard: | |||
|
Description
Markus Keller
When I switch to another editor and then back to the dirty one, the Save toolbar button gets enabled, but Save All stays disabled. It works on Windows XP. Markus, can you take a look? SWT bug in ToolItem#setEnabled(boolean). When you set a breakpoint there, and then try to organize imports, the new "enableWidget(enabled && parent.isEnabled());" (from bug 326200) does not enable the button, since the CoolBar and the CBanner in its ancestor chain are temporarily disabled. This doesn't happen on other platforms and didn't happen in 3.6. If an ancestor of a ToolItem is disabled, this should just block clicks to the item, but should not stop it from becoming enabled. If you're curious to know why the ancestors are disabled, add a breakpoint to Control#setEnabled(..) with condition "!enabled && (getClass() == org.eclipse.swt.custom.CBanner.class || getClass() == CoolBar.class)" This should get fixed for 3.7. Fixed > 20110121. Verified in I20110124-1800. |