[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: Closing editors on shutdown.
|
James,
By the time your shutdown method is called in the Plugin class the
workbench UI state has been persisted and the workbench UI itself has
closed. If you reference the workbench at this time an exception will
definitely occur.
Currently there is way to hook Workbench ui or WorkbenchWindow closure.
BTW, the workbench automatically saves the state of each open editor on
closure. This makes it possible to restore the editor state when the
workbench is restarted. As a result, the user is more productive because
they don't need to recreate the previous state.
Why do you wish to close all of the editors?
Dave