| Summary: | Need to persist information in a window but only contributions have a persisted state map | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Remy Suen <remy.suen> |
| Component: | UI | Assignee: | Platform-UI-Inbox <Platform-UI-Inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert, dean.t.roberts, kai.toedter, Lars.Vogel, tom.schindl |
| Version: | 4.2 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 320478, 366042 | ||
|
Description
Remy Suen
This seems to be something we could expect EAP users to want as well. Currently, 'persistentData' is an attribute of MContribution in order to allow contributions to store their internal state (a la a View's memento). If we allow this we should likely bite the bullet and make this a generally available feature (i.e. allow it not just for MWindows but for everything). I can see two aproaches: 1) Move the current 'persistentData' attribute under ApplicationElement (I was going to say MUIEelment but MAddons are *not* MUIElements but do need persistent state). 2) Provide PersistentData as a mix-in and decide who needs it. Right now I'm leaning towards 1) for symmetry's sake. +1 for 1) +1 for number 1) +1 for 1) Moved persistedState from Contribution to ApplicationElement as discussed. As expected, persisted workbench state appears to be reconstituted in new location fine without any required migration code in reconciler. Commit is http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=ed0b857cf059faf90e52ea5e208fa4ce9628093a |