Community
Participate
Working Groups
I wanted to the workbench window's input for bug 366042 but then realized that this was not possible in the current version of our model.
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)
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