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

Bug 318645

Summary: Duplicate menu contributions after editor switching
Product: [Eclipse Project] e4 Reporter: Stefan Mücke <s.muecke>
Component: UIAssignee: Paul Webster <pwebster>
Status: VERIFIED FIXED QA Contact:
Severity: blocker    
Priority: P3 CC: bokowski, daniel_megert, pwebster, remy.suen
Version: unspecified   
Target Milestone: 1.0 RC2   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
Menu dispose v01 none

Description Stefan Mücke CLA 2010-07-01 15:32:34 EDT
Build Identifier: Build id: I20100630-1856

Steps to reproduce: 

1. Open a Java file
2. Make sure the 'Source' menu is okay
3. Open a text file
4. Switch back to the Java file
5. Open the 'Source' menu again: all contributions are duplicated

Additional switching back and forth will add even more duplicates to the 'Source' menu.

Reproducible: Always
Comment 1 Remy Suen CLA 2010-07-05 07:33:41 EDT
*** Bug 318853 has been marked as a duplicate of this bug. ***
Comment 2 Remy Suen CLA 2010-07-05 09:30:35 EDT
We need to monitor the disposal of the 'Source' menu item and then perform the clean up in order to remove the model contributions. As is, the menu item and corresponding menu is recreated on-demand based on the active context.
Comment 3 Paul Webster CLA 2010-07-06 12:54:59 EDT
Created attachment 173579 [details]
Menu dispose v01

Make sure the model is cleaned up on a dispose

PW
Comment 4 Paul Webster CLA 2010-07-06 12:55:59 EDT
Released to HEAD
PW
Comment 5 Dani Megert CLA 2010-07-08 05:27:48 EDT
Verified in I20100707-2006.