Community
Participate
Working Groups
I am bold and mark it critical... :) I have some model fragments defined through fragment.e4xmi files. All menu items specified in these fragments show up only once if the application is started for the first time. If the application is restarted for the first time, these menu items show up twice, if the application is started for the second time, they are shown trice, ... and if it is started for the n-th time, they are shown (n+1)-times. When the run-time workspace data are cleared, the menu items again show up only once. Menu items specified in Application.e4xmi are not affected. As far as I can tell, the MCommand model elements are persisted multiple times, if the application is stopped. I am using http://download.eclipse.org/eclipse/updates/4.2-I-builds as target. The problem showed up after my latest update.
*** Bug 375264 has been marked as a duplicate of this bug. ***
I can duplicate it.
I added model fragment to the contacts demo so that this problem would be easier to see in future, Git reference: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=d260d1bea8f977b396660fad7a4acb81075054bc (adds Help -> Feedback menu item) The fix is: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=4d10c1a37a911bb20f12b49088e20d72ed1eb9ea Rather then adding items, we check if there is an item with the same ID and if it needs to be updated. Hopefully, we can spend more time in 4.3 on the RCP side, the model assembly story could be improved.
*** Bug 375375 has been marked as a duplicate of this bug. ***
Verified using I20120430-1800.