|
|
Re: How to temporarily store data to use after PlatformUI.getWorkbench().restart(); [message #483409 is a reply to message #483283] |
Tue, 01 September 2009 14:13 |
Eclipse User |
|
|
|
Originally posted by: TheRealHawk.Freenet.de
But I want to hold my login-data to do a relogin after restart and therefore
I don't want to store the data permanently.
Markus
"Wim Jongman" <wim.jongman@gmail.com> schrieb im Newsbeitrag
news:h7hdl5$dfp$1@build.eclipse.org...
> Hi Markus,
>
> Add lifeycle control to your RCP application:
>
> If you override this method in your WorkbenchAdvisor:
>
> @Override
> public void initialize(IWorkbenchConfigurer configurer) {
> super.initialize(configurer);
> configurer.setSaveAndRestore(true);
> }
>
> then the saveState(IMemento) and restoreSate(IMemento) methods are called
> during the lifecycle in your advisor classes.
>
> If your application is not in control then I would save and restore state
> in
> one of my activators
>
> @See AbstractUiPlugin.getDialogSettings(),
> AbstractUiPlugin.getPreferenceStore(), AbstractUiPlugin.getStateLocation()
>
>
> Best regards,
>
> Wim Jongman
>
>> Hi,
>>
>> I want to hold some data to use after restart but I don't want to store
> them
>> in Preferences because I'll only use this for restart-purposes.
>>
>> I've already tried System.setProperty() but this doesn't work. :-(
>>
>> Any other ideas?
>>
>> Markus
|
|
|
|
Powered by
FUDForum. Page generated in 0.02763 seconds