org.eclipse.datatools.sqltools.sqleditor
Class SQLEditorInputFactory
java.lang.Object
org.eclipse.datatools.sqltools.sqleditor.SQLEditorInputFactory
- All Implemented Interfaces:
- org.eclipse.ui.IElementFactory
public class SQLEditorInputFactory
- extends java.lang.Object
- implements org.eclipse.ui.IElementFactory
The class implements a factory which is capable of recreating SQL Editor file editor
inputs stored in a memento.
- Author:
- bgp
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 void |
saveState(org.eclipse.ui.IMemento memento,
SQLEditorStorageEditorInput input)
Saves the state of the given storage editor input object in the given memento. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ID_FACTORY
public static final java.lang.String ID_FACTORY
- See Also:
- Constant Field Values
ID_STORAGE_EDITOR_INPUT
public static final java.lang.String ID_STORAGE_EDITOR_INPUT
- See Also:
- Constant Field Values
KEY_CONN_INFO_CODE
public static final java.lang.String KEY_CONN_INFO_CODE
- See Also:
- Constant Field Values
KEY_DEFAULT_SCHEMA_NAME
public static final java.lang.String KEY_DEFAULT_SCHEMA_NAME
- See Also:
- Constant Field Values
KEY_EDITOR_INPUT_TYPE
public static final java.lang.String KEY_EDITOR_INPUT_TYPE
- See Also:
- Constant Field Values
KEY_STORAGE_CONTENT
public static final java.lang.String KEY_STORAGE_CONTENT
- See Also:
- Constant Field Values
KEY_STORAGE_NAME
public static final java.lang.String KEY_STORAGE_NAME
- See Also:
- Constant Field Values
SQLEditorInputFactory
public SQLEditorInputFactory()
createElement
public 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.
- Specified by:
createElement
in interface org.eclipse.ui.IElementFactory
- See Also:
IElementFactory.createElement(org.eclipse.ui.IMemento)
saveState
public static void saveState(org.eclipse.ui.IMemento memento,
SQLEditorStorageEditorInput input)
- Saves the state of the given storage editor input object in the given memento.
- Parameters:
memento
- the storage area for object's stateinput
- the storage editor input object that needs to be saved