[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?

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.

"Tomek Willi" <tomek@xxxxxxxxxxxxx> a écrit dans le message de news:7434884.34621207904084275.JavaMail.root@xxxxxxxxxxxxxxxx
Hi,
I would like to close all open resources in my RCP-App on start-up.
It should work like the "close all" action in the normal eclipse application.


How could I do that?

Tanks in advance,
Tomek