| Summary: | [Contributions] PopupMenuExtender does not update list of static actions when new menu ids are added | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Amy Wu <for.work.things> |
| Component: | UI | Assignee: | Douglas Pollock <douglas.pollock> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | david_williams, eclipse |
| Version: | 3.1 | ||
| Target Milestone: | 3.2 M3 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Amy Wu
When the dynamic support was added to PopupMenuExtender, this flag was added.
However, it wasn't reset in the addMenuId(String) method, so this bug was
introduced.
I'm going to add the following to addMenuId(String):
bitSet &= ~STATIC_ACTION_READ;
if (staticActionBuilder != null) {
staticActionBuilder.dispose();
staticActionBuilder = null;
}
readStaticActions();
The rationale for the readStaticActions() is to try to get all the one-time
only work done up-front -- instead of when trying to respond to a user event
(e.g., right mouse button click).
Fixed in CVS. I'm rolling back this fix as it's introduced bug 108709. Fixed in HEAD ... again ... but better this time, I promise. Amy: Could you verify that I20051102-1200 or later fixes this problem for you? verified in 3.2 RC1 (sorry it took so long to verify) |