Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-ui-dev] View persistance during a session

Hola.

View contents are only persisted during shutdown. For views without a model 
underneath them (e.g. Ant view, Display view), this means that the view 
contents are lost when you close and reopen the view in the same session. If 
a client wants to save the state of the view when it's closed, they have to 
either hold the view's contents in memory (wasteful) or write a competing 
mechanism for storing the contents on disk (their own memento).

Is there any chance that the view lifecycle could be extended to include 
modelless views? Possibly something like IModellessViewPart that extends 
IViewPart and adds a save(IMemento) and init(IMemento) method for when the 
view is closed and reopened at times between startup and shutdown?

Thanks,
- Jared


Back to the top