| Summary: | [WorkingSets] Setting window working set affects all windows | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Brian de Alwis <bsd> |
| Component: | UI | Assignee: | Brian de Alwis <bsd> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | Lars.Vogel, psuzzi |
| Version: | 4.6 | Flags: | psuzzi:
review+
Lars.Vogel: review+ |
| Target Milestone: | 4.6 RC2 | ||
| Hardware: | PC | ||
| OS: | Mac OS X | ||
| See Also: |
https://bugs.eclipse.org/bugs/show_bug.cgi?id=412970 https://git.eclipse.org/r/72464 https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=78b6ea727ada099e2d46d30ae9ff34f6528f8a19 |
||
| Whiteboard: | |||
|
Description
Brian de Alwis
The fix for bug 412970 does not properly handle multiple windows. The change in WindowPage (reformatted): + if (aggregateWorkingSetId == null) { + aggregateWorkingSet = findAggregateWorkingSet(workingSetManager); + aggregateWorkingSetId = aggregateWorkingSet == null + ? getDefaultAggregateWorkingSetId() + : aggregateWorkingSet.getName(); means that a new windows (which has aggregateWorkingSetId == null) will share the same aggregate working set. There must be an aggregateWorkingSet per window. New Gerrit change created: https://git.eclipse.org/r/72464 To see the problem, look at the 'aggregateWorkingSetId' key for the windows in your saved workbench layout. You'll see all windows reference the same working set (effectively a workbench working set). Although that could be desirable, that's not the intention of the Window Working Set.
It does mean that existing workspaces will need to close and reopen their windows.
```
$ grep aggregateWorkingSetId ../ws/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
<persistedState key="aggregateWorkingSetId" value="Aggregate for window 1458700436581"/>
<persistedState key="aggregateWorkingSetId" value="Aggregate for window 1458700436581"/>
<persistedState key="aggregateWorkingSetId" value="Aggregate for window 1458700436581"/>
```
I tested your fix with a new workspace and it works fine. Resolved for RC2. Gerrit change https://git.eclipse.org/r/72464 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=78b6ea727ada099e2d46d30ae9ff34f6528f8a19 Verified in 4.6.0.I20160519-1730. This fix will only apply to newly created windows — existing windows to this point will continue to share the same working set. |