Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Save and Restoring state
Save and Restoring state [message #449392] Thu, 11 May 2006 14:21 Go to next message
Eclipse UserFriend
Originally posted by: sjohnston.21technologies.com

Hi,

I have an RCP application which loads an onotology and sets up several
tree views based on this ontology. I would like to be able to shut down
the application and restart where I left off with all of my views as
they were when i closed the application. What mechanisms are available
in RCP for this?

-Stephen
Re: Save and Restoring state [message #449394 is a reply to message #449392] Thu, 11 May 2006 16:24 Go to previous message
Eclipse UserFriend
There are two methods in the ViewPart class:
init(...) and saveState(...)

These methods allow you to save the state of your view.
To enable this behaviour you must call
configurer.setSaveAndRestore(true);
in your WorkbenchAdvisor.

Hope that helps,
Stefan

Stephen Johnston schrieb:
> Hi,
>
> I have an RCP application which loads an onotology and sets up several
> tree views based on this ontology. I would like to be able to shut down
> the application and restart where I left off with all of my views as
> they were when i closed the application. What mechanisms are available
> in RCP for this?
>
> -Stephen
Previous Topic:How to arrange editors programmatically
Next Topic:Help with advanced update API use
Goto Forum:
  


Current Time: Sat Aug 30 15:45:09 EDT 2025

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

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

Back to the top