All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.eclipse.ui.IPersistableEditor Maven / Gradle / Ivy

Go to download

This plug-in contains the bulk of the Workbench implementation, and depends on JFace, SWT, and Core Runtime. It cannot be used independently from org.eclipse.ui. Workbench client plug-ins should not depend directly on this plug-in.

The newest version!
/*******************************************************************************
 * Copyright (c) 2006 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 ******************************************************************************/
package org.eclipse.ui;

/**
 * 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. *
  3. editor.restoreState(memento)
  4. *
  5. editor.createPartControl(parent)
  6. *
  7. ...
  8. *
*

*

* On workbench shutdown, the editor state will be persisted when the editor * references are saved. *

* * @since 3.3 */ public interface IPersistableEditor extends IPersistable { /** * Called with a memento for this editor. The editor can parse the data or * save the memento. This method may not be called. * * @param memento * the saved state for this editor. May be null. */ public void restoreState(IMemento memento); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy