Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » MainMenu isn't persisted
MainMenu isn't persisted [message #1066189] Mon, 01 July 2013 13:15 Go to next message
Bastian Wagenfeld is currently offline Bastian Wagenfeld
Messages: 162
Registered: January 2013
Senior Member
Hi,

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 Smile ).

Did anyone else experience something like this, or has a hint?

Best regards,
Bastian
Re: MainMenu isn't persisted [message #1066278 is a reply to message #1066189] Mon, 01 July 2013 20:25 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot Cela
Messages: 597
Registered: December 2010
Senior Member

Set a breakpoint in setMainMenu and find out from the call stack when it is made null.
Re: MainMenu isn't persisted [message #1066310 is a reply to message #1066189] Tue, 02 July 2013 06:49 Go to previous messageGo to next message
Frank Benoit is currently offline Frank Benoit
Messages: 47
Registered: July 2009
Member
I have the same issue.

http://www.eclipse.org/forums/index.php/mv/msg/446433/997140/#msg_997140

Re: MainMenu isn't persisted [message #1066333 is a reply to message #1066310] Tue, 02 July 2013 08:36 Go to previous messageGo to next message
Bastian Wagenfeld is currently offline Bastian Wagenfeld
Messages: 162
Registered: January 2013
Senior Member
Hey,

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?

Best regards
Bastian
Re: MainMenu isn't persisted [message #1066340 is a reply to message #1066333] Tue, 02 July 2013 08:51 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot Cela
Messages: 597
Registered: December 2010
Senior Member

To open the live editor do a CTRL+3 and type live editor. If it shows up there and you can open it please file a bug on e4/tools regarding the unability to open it through the shortcut.
Re: MainMenu isn't persisted [message #1066460 is a reply to message #1066333] Tue, 02 July 2013 17:52 Go to previous messageGo to next message
Frank Benoit is currently offline Frank Benoit
Messages: 47
Registered: July 2009
Member
Hi Bastian,

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.

cu
Frank


Re: MainMenu isn't persisted [message #1066542 is a reply to message #1066460] Wed, 03 July 2013 05:30 Go to previous message
Bastian Wagenfeld is currently offline Bastian Wagenfeld
Messages: 162
Registered: January 2013
Senior Member
Hi,

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.

Thank you for your help
Bastian
Previous Topic:Configure PartStack to be displayed minimized
Next Topic:FileDialog broken in Kepler ?
Goto Forum:
  


Current Time: Sat Oct 25 05:39:27 GMT 2014

Powered by FUDForum. Page generated in 0.03415 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software