|
|||||||||
| Home >> All >> com >> port80 >> eclipse >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.port80.eclipse.util
Class GraphEditorInputFactory

java.lang.Objectcom.port80.eclipse.util.GraphEditorInputFactory
- All Implemented Interfaces:
- org.eclipse.ui.IElementFactory
- public class GraphEditorInputFactory
- extends java.lang.Object
- implements org.eclipse.ui.IElementFactory
- extends java.lang.Object
Factory for saving and restoring a GraphEditorInput.
The stored representation of a GraphEditorInput remembers
the .dot file name for the IGraph.
The workbench will automatically create instances of this class as required. It is not intended to be instantiated or subclassed by the client.
| Field Summary | |
static java.lang.String |
ID_FACTORY
Factory id. |
private static java.lang.String |
TAG_PATH
Tag for the IFile.fullPath of the file resource. |
| Constructor Summary | |
GraphEditorInputFactory()
Creates a new factory. |
|
| Method Summary | |
org.eclipse.core.runtime.IAdaptable |
createElement(org.eclipse.ui.IMemento memento)
Re-creates and returns an object from the state captured within the given memento. |
static java.lang.String |
getFactoryId()
Returns the element factory id for this class. |
static void |
saveState(org.eclipse.ui.IMemento memento,
GraphEditorInput 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 |
| Field Detail |
ID_FACTORY
public static final java.lang.String ID_FACTORY
- Factory id. The workbench plug-in registers a factory by this name
with the "org.eclipse.ui.elementFactories" extension point.
- See Also:
- Constant Field Values
TAG_PATH
private static final java.lang.String TAG_PATH
- Tag for the IFile.fullPath of the file resource.
- See Also:
- Constant Field Values
| Constructor Detail |
GraphEditorInputFactory
public GraphEditorInputFactory()
- Creates a new factory.
| Method Detail |
createElement
public org.eclipse.core.runtime.IAdaptable createElement(org.eclipse.ui.IMemento memento)
- Description copied from interface:
org.eclipse.ui.IElementFactory - Re-creates and returns an object from the state captured within the given
memento.
Under normal circumstances, the resulting object can be expected to be persistable; that is,
result.getAdapter(org.eclipse.ui.IPersistableElement.class)
should not returnnull.- Specified by:
createElementin interfaceorg.eclipse.ui.IElementFactory
getFactoryId
public static java.lang.String getFactoryId()
- Returns the element factory id for this class.
saveState
public static void saveState(org.eclipse.ui.IMemento memento, GraphEditorInput input)
- Saves the state of the given file editor input into the given memento.
|
|||||||||
| Home >> All >> com >> port80 >> eclipse >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.port80.eclipse.util.GraphEditorInputFactory