|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.ui.part.FileEditorInputFactory
Factory for saving and restoring a 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 Summary | |
FileEditorInputFactory()
Creates a new factory. |
Method Summary | |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileEditorInputFactory()
Method Detail |
public IAdaptable createElement(IMemento memento)
IElementFactory
Under normal circumstances, the resulting object can be expected to be persistable; that is,
result.getAdapter(org.eclipse.ui.IPersistableElement.class)should not return
null
.
createElement
in interface IElementFactory
memento
- a memento containing the state for the object
null
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
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |