My RCP (on 4.3 in compat mode) doesn't persist the window's main menu in the workbench.xmi. So the first time I start my RCP (when no workbench.xmi is available) the menu is shown as it should. After a restart the main menu isn't there, MTrimmedWindow.getMainMenu() == null.
The RCP consists of seven fragments that are included in the application. The Application.e4xmi only has a MTrimmedWindow with a Trimbar, a PerspectiveStack and the MainMenu (more or less ).
Did anyone else experience something like this, or has a hint?
thanks for your answers. This is exactly my problem as well. So did you find a solution for it, since the case is closed? I also had a look at this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=388808 which seems to be the same.
My RCP uses all the id's of the Legacy.e4xmi, so I don't know, if that's the reason, it isn't shown.
Unfortunately I'm not able to open the application live editor (with Alt+Shift+F9) in Eclipse 4.3 to have a look at differences between my model and Eclipse's. Is there another way to open the live editor, or do I have to unlock something?
I tried to make a cut down example with the LegacyIDE.e4xmi but i did not succeed.
Even when I take the original LegacyIDE.e4xmi and only add a single menu entry, the menu disappears with the second start.
thank you for your answer. Well that's what I experienced, too. I don't see anything different to the original Legacy.e4xmi.
I "solved" this by contributing the menu in code. The menu doesn't need to have a persisted state and it is very small, so it's no problem to create it in code. But of course, this is not a real solution.