Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
#include <berryIPersistableEditor.h>
Public Member Functions | |
virtual void | RestoreState (const SmartPointer< const IMemento > &memento)=0 |
Public Member Functions inherited from berry::IPersistable | |
virtual | ~IPersistable () |
virtual void | SaveState (const SmartPointer< IMemento > &memento) const =0 |
An editor can implement this interface and participate in the workbench session save/restore cycle using IMemento
, similar to how IViewPart
currently works.
Refer to IWorkbenchPart for the part lifecycle.
If a memento is available, RestoreState(*) will be inserted into the editor startup.
editor.Init(site, input)
editor.RestoreState(memento)
editor.CreatePartControl(parent)
On workbench shutdown, the editor state will be persisted when the editor references are saved.
Definition at line 42 of file berryIPersistableEditor.h.
|
pure virtual |
Called with a memento for this editor. The editor can parse the data or save the memento. This method may not be called.
memento | the saved state for this editor. May be null . |