Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 317121

Summary: [Compatibility] Second open of File menu shifts contributions around
Product: [Eclipse Project] e4 Reporter: Paul Webster <pwebster>
Component: UIAssignee: Paul Webster <pwebster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: emoffatt, remy.suen
Version: 1.0   
Target Milestone: 1.0 RC0   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Paul Webster CLA 2010-06-16 18:04:11 EDT
The first time we open the File menu, the Restart item is by Switch Workspace.

The second time it opens, Restart appears at the top.

The cleanup was calling removeGui(*) on the child elements.  Then the Restart item was added and rendered by the listener at idx==0.  Then the later call to createGui(*) on all children skip Restart because it already has a widget.

PW
Comment 1 Paul Webster CLA 2010-06-16 18:45:31 EDT
I limit my removeGui(*) to the items I added, so the rest of the menu is in place and the indices are correct for menu contributions.

PW
Comment 2 Paul Webster CLA 2010-06-16 18:45:40 EDT
.