|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
---|---|
void |
restoreState(IMemento memento)
Called with a memento for this editor. |
Methods inherited from interface org.eclipse.ui.IPersistable |
---|
saveState |
Method Detail |
public void restoreState(IMemento memento)
memento
- the saved state for this editor. May be null
.
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.