Summary: | Hook into saving of workbench state to perform additional tasks (e.g. storing state in remote database) | ||
---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Timo Rohrberg <timo.rohrberg> |
Component: | UI | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> |
Status: | NEW --- | QA Contact: | |
Severity: | enhancement | ||
Priority: | P3 | CC: | allan.beharry, remy.suen, timo.rohrberg |
Version: | 3.7.1 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Whiteboard: |
Description
Timo Rohrberg
2012-02-16 03:00:41 EST
In 3.x the workbench.xml is an internal implementation detail. It doesn't exist in 4.2, for example. But if you did want to save it, probably org.eclipse.ui.IWorkbenchListener.postShutdown(IWorkbench) would be the best place, because by then it would be written out. Also it is read during creating the first workbench. You might be able to replace it in org.eclipse.ui.application.WorkbenchAdvisor.preStartup() though. In 4.x, workbench.xml has been replaced by the model. I know that people working with the CDO project have managed to save the model to a server and reload it. PW |