Package com._1c.g5.v8.dt.common.ui.part
Class EObjectEditorInputFactory
- java.lang.Object
-
- com._1c.g5.v8.dt.common.ui.part.EObjectEditorInputFactory
-
- All Implemented Interfaces:
org.eclipse.ui.IElementFactory
public class EObjectEditorInputFactory extends Object implements org.eclipse.ui.IElementFactory
Factory for saving and restoring aEObjectEditorInput
. The stored representation of aEObjectEditorInput
remembers the URI (that is,EcoreUtil.getgetURI(EObject)
).The workbench will automatically create instances of this class as required. It is not intended to be instantiated or subclassed by the client.
- Restriction:
- This class is not intended to be subclassed by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ID_FACTORY
Factory id.
-
Constructor Summary
Constructors Constructor Description EObjectEditorInputFactory()
Creates a new factory.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.core.runtime.IAdaptable
createElement(org.eclipse.ui.IMemento memento)
static void
saveState(org.eclipse.ui.IMemento memento, EObjectEditorInput<?> input)
Saves the state of the given file editor input into the given memento.
-
-
-
Field Detail
-
ID_FACTORY
public static final String ID_FACTORY
Factory id. The 'com._1c.g5.v8.dt.common.ui' plug-in registers a factory by this name with the "org.eclipse.ui.elementFactories" extension point.
-
-
Method Detail
-
createElement
public org.eclipse.core.runtime.IAdaptable createElement(org.eclipse.ui.IMemento memento)
- Specified by:
createElement
in interfaceorg.eclipse.ui.IElementFactory
-
saveState
public static void saveState(org.eclipse.ui.IMemento memento, EObjectEditorInput<?> input)
Saves the state of the given file editor input into the given memento.- Parameters:
memento
- the storage area for element stateinput
- the file editor input
-
-