|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.sqleditor.SQLEditorStorageEditorInput
This class implements the ISQLEditorInput
interface on a
IStorageEditorInput
base. It is provided as a convenience to
callers of the SQL Editor who want to open the editor on an input that
isn't a file.
Constructor Summary | |
SQLEditorStorageEditorInput(IStorage storage)
Constructs an instance of this class with the given IStorage
object as the editor input source. |
|
SQLEditorStorageEditorInput(java.lang.String name,
java.lang.String storageSource)
Constructs an instance of this class with the given string as the editor input source. |
Method Summary | |
boolean |
exists()
Gets whether the editor input exists. |
java.lang.Object |
getAdapter(java.lang.Class adapter)
Gets an object which is an instance of the given class associated with this object. |
ISQLEditorConnectionInfo |
getConnectionInfo()
Gets the ISQLEditorConnectionInfo object for this editor input. |
java.lang.String |
getFactoryId()
Returns the id of the element factory which should be used to re-create this object. |
java.lang.String |
getId()
Returns the unique identifier that distinguishes this editor input |
ImageDescriptor |
getImageDescriptor()
Gets the image descriptor for this input. |
java.lang.String |
getName()
Gets the name of this editor input for display purposes. |
IPersistableElement |
getPersistable()
Gets an object that can be used to save the state of this editor input. |
IStorage |
getStorage()
Gets the underlying IStorage object. |
java.lang.String |
getToolTipText()
Gets the tool tip text for this editor input. |
boolean |
isConnectionRequired()
Returns whether database connection is required for this editor input to exist. |
void |
saveState(IMemento memento)
Saves the state of the object in the given memento. |
void |
setConnectionInfo(ISQLEditorConnectionInfo connInfo)
Sets the ISQLEditorConnectionInfo object for this editor input to
the given object. |
void |
setName(java.lang.String name)
Sets the name of this editor input to the given name. |
void |
setStorage(IStorage storage)
Sets the underlying IStorage object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SQLEditorStorageEditorInput(java.lang.String name, java.lang.String storageSource)
storageSource
- the editor input source stringpublic SQLEditorStorageEditorInput(IStorage storage)
IStorage
object as the editor input source.
storage
- the storage object for this editor inputMethod Detail |
public boolean exists()
org.eclipse.ui.IEditorInput#exists()
public java.lang.Object getAdapter(java.lang.Class adapter)
null
if no such object can be found.
This default implementation returns null.
org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
public ISQLEditorConnectionInfo getConnectionInfo()
ISQLEditorConnectionInfo
object for this editor input.
getConnectionInfo
in interface ISQLEditorInput
ISQLEditorConnectionInfo
objectpublic ImageDescriptor getImageDescriptor()
org.eclipse.ui.IEditorInput#getImageDescriptor()
public java.lang.String getName()
org.eclipse.ui.IEditorInput#getName()
public IPersistableElement getPersistable()
org.eclipse.ui.IEditorInput#getPersistable()
public IStorage getStorage()
IStorage
object. The default storage
object is implemented as a InputStream
.)
org.eclipse.ui.IStorageEditorInput#getStorage()
public java.lang.String getToolTipText()
org.eclipse.ui.IEditorInput#getToolTipText()
public java.lang.String getFactoryId()
org.eclipse.ui.IPersistableElement#getFactoryId()
public void saveState(IMemento memento)
memento
- the storage area for object's stateorg.eclipse.ui.IPersistableElement#saveState(org.eclipse.ui.IMemento)
public void setConnectionInfo(ISQLEditorConnectionInfo connInfo)
ISQLEditorConnectionInfo
object for this editor input to
the given object.
setConnectionInfo
in interface ISQLEditorInput
connInfo
- the ISQLEditorConnectionInfo
object to setpublic void setName(java.lang.String name)
name
- the name to setpublic void setStorage(IStorage storage)
IStorage
object.
storage
- the storage object to usepublic boolean isConnectionRequired()
ISQLEditorInput
isConnectionRequired
in interface ISQLEditorInput
public java.lang.String getId()
ISQLEditorInput
getId
in interface ISQLEditorInput
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |