Community
Participate
Working Groups
see screenshot
Created attachment 173813 [details] screenshot
1. Launch your inner. 2. Window > New Window 3. Bring up the 'Window' menu in the second window. 4. Bring up the 'Window' menu in the first window. 5. Close the second window. 6. Bring up the 'Window' menu in the first window. The extra entries are still there.
SwitchToWindowMenu's fill(Menu, int) is invoked every time the 'Window' menu is opened. However, once you spawn another workbench window, it is never invoked again. This applies to both the original and the new workbench window. Normally, you would see something like the following... Thread [main] (Suspended (breakpoint at line 88 in SwitchToWindowMenu)) SwitchToWindowMenu.fill(Menu, int) line: 88 RenderedMenuItemRenderer.fill(IContributionItem, Menu) line: 51 RenderedMenuItemRenderer.createWidget(MUIElement, Object) line: 44 PartRenderingEngine.createWidget(MUIElement, Object) line: 573 PartRenderingEngine.createGui(MUIElement, Object, IEclipseContext) line: 377 MenuServiceFilter.render(Menu, MMenu) line: 232 MenuServiceFilter.showMenu(Event, Menu, MMenu) line: 157 MenuServiceFilter.handleMenu(Event, Menu, MMenu) line: 114 MenuServiceFilter.handleEvent(Event) line: 100 EventTable.sendEvent(Event) line: 84 Display.filterEvent(Event) line: 1253
Fixed in CVS HEAD.