public interface IPersistableEditor extends IPersistable
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.
| Modifier and Type | Method and Description |
|---|---|
void |
restoreState(IMemento memento)
Called with a memento for this editor.
|
saveStatevoid restoreState(IMemento memento)
memento - the saved state for this editor. May be null.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.