Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » E4 RCP Application - persist state
E4 RCP Application - persist state [message #1721255] Tue, 26 January 2016 03:26
Eclipse UserFriend
Hello,
regarding this topic I checked the whole forum. I think that I already tested all possible flags (clearPersistedState, persistState) with all possible configurations. I have to admit that I was not able to force my application to save its model state on exit and load it during startup automatically. Finally I used the IModelResourceHandler and handler.save() at the application ExitHandler. Is there any way to do it automatically? Removing the
clearPersistedState flag does not work. Adding the persistState flag also does not help. I use the Mars.1 Release (4.5.1).

Another question is, how to restart the E4 application. I found some tips (e.g. overriding the IApplication and creating E4Application object "manually") but nothing seems to work. I also found that there is a IWorkbench restart() function, but it closes the application as close() function. No restart.

Thank you in advance for any tips.
Marcin

[Updated on: Wed, 27 January 2016 06:28] by Moderator

Previous Topic:Eclipse causing glitch
Next Topic:Disappearing Error Dialog
Goto Forum:
  


Current Time: Sun Jul 13 14:50:12 EDT 2025

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

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

Back to the top