| Summary: | QuickMenuAction leaks the context menus | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Erich Gamma <erich_gamma> |
| Component: | UI | Assignee: | Dirk Baeumer <dirk_baeumer> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | michaelvanmeekeren |
| Version: | 3.0 | ||
| Target Milestone: | 3.0 RC2 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Erich Gamma
Must fix for RC2. I fixed this by running an event loop after the menu gets visible. This avoids
the problem that the menu is still referenced until it gets opened the next
time. The code I added is as follows:
while (!widget.isDisposed() && widget.isVisible()) {
if (!display.readAndDispatch())
display.sleep();
}
if (!widget.isDisposed()) {
widget.dispose();
}
Michael, you might want to consider using this fix in your implementaiton of
QuickMenuAction.
Fixed for > I20040607 start verifying start verifying verified in I200406110010 through code inspection |