[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: How to close all resources by code?

Hi Christophe,
yes, thant's right! I removed the line now.
 
Thank you for your support as well!
Tomek

> Hello,
> 
> Achim told you the right method call, but as you've
> said "close all open 
> resources in my RCP-App ON START-UP", perhaps you
> only need to remove a line 
> like "configurer.setSaveAndRestore(true);" which
> might be present in your 
> ApplicationWorkbenchAdvisor class.
> 
> This method call tells Eclipse to save all opened
> editors on close and to 
> restore them on startup. If you need to always close
> all editors on startup, 
> I would suggest you to remove the line or to pass
> false to the method call. 
> This would avoid extra-work (save, restore, and
> close) on editors.
> 
> Hope this helps.
> Christophe.