Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Saving workbench layout on program exit(So that it remembers the layout next time it is run)
icon5.gif  Saving workbench layout on program exit [message #696843] Thu, 14 July 2011 19:37 Go to next message
SBS  is currently offline SBS
Messages: 57
Registered: January 2011
Member
I would like my RCP application to "remember" the layout of views between executions of the program. I am sure this must be possible because the Eclipse IDE itself does this but I do not know how to do it. Can someone point me in the right direction?

Thanks,

-sbs
Re: Saving workbench layout on program exit [message #696982 is a reply to message #696843] Fri, 15 July 2011 04:53 Go to previous message
Giovanni De Sossi is currently offline Giovanni De Sossi
Messages: 161
Registered: October 2009
Location: Rome, Italy
Senior Member

In your ApplicationWorkbenchAdvisor class, override method public void initialize(IWorkbenchConfigurer configurer) and add this:

configurer.setSaveAndRestore(true);

HTH, bye

Giovanni
Previous Topic:how to set the color of text in state line
Next Topic:Help content in Eclipse RCP application
Goto Forum:
  


Current Time: Wed Jul 30 05:06:47 EDT 2014

Powered by FUDForum. Page generated in 0.02648 seconds