public class FileEditorInputFactory extends Object implements IElementFactory
FileEditorInput.
The stored representation of a FileEditorInput remembers
the full path of the file (that is, IFile.getFullPath).
The workbench will automatically create instances of this class as required. It is not intended to be instantiated or subclassed by the client.
| Constructor and Description |
|---|
FileEditorInputFactory()
Creates a new factory.
|
| Modifier and Type | Method and Description |
|---|---|
IAdaptable |
createElement(IMemento memento)
Re-creates and returns an object from the state captured within the given
memento.
|
static String |
getFactoryId()
Returns the element factory id for this class.
|
static void |
saveState(IMemento memento,
FileEditorInput input)
Saves the state of the given file editor input into the given memento.
|
public IAdaptable createElement(IMemento memento)
IElementFactoryIf the result is not null, it should be persistable; that is,
result.getAdapter(org.eclipse.ui.IPersistableElement.class)should not return
null.
createElement in interface IElementFactorymemento - a memento containing the state for the objectnull if the element could not be
createdpublic static String getFactoryId()
public static void saveState(IMemento memento, FileEditorInput input)
memento - the storage area for element stateinput - the file editor input
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.