Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Eclipse Platform
Release 3.5

Interface IPersistableEditor

All Superinterfaces:
All Known Implementing Classes:
AbstractDecoratedTextEditor, AbstractTextEditor, StatusTextEditor, TextEditor

public interface IPersistableEditor
extends IPersistable

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.

  1. editor.init(site, input)
  2. editor.restoreState(memento)
  3. editor.createPartControl(parent)
  4. ...

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

Method Detail


void restoreState(
IMemento memento)
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.

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire