Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317121 - [Compatibility] Second open of File menu shifts contributions around
Summary: [Compatibility] Second open of File menu shifts contributions around
Status: RESOLVED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 1.0 RC0   Edit
Assignee: Paul Webster CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-16 18:04 EDT by Paul Webster CLA
Modified: 2010-06-16 18:45 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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
.