Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Save workbench state
Save workbench state [message #692817] Tue, 05 July 2011 05:54 Go to next message
Eclipse UserFriend
Hi folks,

I am currently developing an RCP application from my existing Eclipse plugins. When I use my plugins inside Eclipse IDE everything works fine but I still get some errors when running it from my RCP application.

Currently the most annoying thing, where I can't find any relevant hits when earching the net is the fact that my editors get closed when I restart the application. Whenever I opened several files and need to restart my runtime environment all editors are closed afterwards. How can I get the state of open editors restored after an application restart?

I supsect the solution to be somewhere in the pre../post.. Methods in the Workbench(*)Advisor-Classes but could not find any hint on that.

Thanks in advance
Alexander
Re: Save workbench state [message #693333 is a reply to message #692817] Wed, 06 July 2011 05:28 Go to previous messageGo to next message
Eclipse UserFriend
Does
public void initialize(IWorkbenchConfigurer configurer) {
configurer.setSaveAndRestore(true);
}

in class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor

make any difference?

Richard
Re: Save workbench state [message #693338 is a reply to message #693333] Wed, 06 July 2011 05:35 Go to previous message
Eclipse UserFriend
Yes it does, thank you very much.

For some reason I tried to use this in my ApplicationWorkbenchWindowAdvisor instead of ApplicationWorkbenchAdvisor and there it did not make any difference.

Alexander
Previous Topic:How to apply Hit Count in CDT?
Next Topic:Where is the content in Register View from?
Goto Forum:
  


Current Time: Sun Aug 31 16:22:56 EDT 2025

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

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

Back to the top