[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: Preventing an Editor fom being restored!

Hi George,

This behaviour is not under your control. When workbench leaves, all editors
oppened are saved in an XML file
(<ECLIPSE_DIR>\workspace\.metadata\.plugins\org.eclipse.ui.workbench\workbench.xml).
Each View previously saved are recreated at startup, and a IMemento is passed
to view to load view's data.
Try to dispose inside createPart method. I've not tried by my self, but perhaps
works.

BTW: This group is deprecated. Put your message in eclipse.platform, and you
have best choice to get another response.

[]s
Glauco Reis

Georg Lenz wrote:

> Hei
> I am trying to figure out how to prevent the resurrection of an Editor that
> was open
> when the workbench was shut down.
> "Close all Editors on exit" in the Workbench Preference page is no option.
> Only Editors of a specific Type have:
> A: Either to be closed when shutting down the Workbench or
> B: Being prevented from resurrection during Workbench start up.
> Has anybody solved that problem?
>
> Thanxs
> Georg Lenz