Project: Eclipse_Platform_UI
Bug 37143 [WorkingSets] API addition to IWorkingSetManager to recreate an IWorkingSet from an IMemento
Reported: 2003-05-01 14:55:06 | Status: resolved fixed

We are creating and persisting an IWorkingSet within the .launch framework to enable sharing of a working set. The only problem is in the restoration of the IWorkingSet from the stored IMemento. We would like to not have to duplicate the code for persisting and restoring the working sets. I would like to propose the following addition to IWorkingSetManager: IWorkingSetManager.createWorkingSet(IMemento workingSetMemento) As well it should be explict on IWorkingSet that it adapts to IPersistableElement.

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/IWorkingSet.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/IWorkingSetManager.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkingSet.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkingSetFactory.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkingSetManager.java tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/api/IWorkingSetManagerTest.java