| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.sqltools.sqleditor.SQLEditorStorageEditorInput
public class 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(org.eclipse.core.resources.IStorage storage)Constructs an instance of this class with the given IStorageobject 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 ISQLEditorConnectionInfoobject 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 | 
|  org.eclipse.jface.resource.ImageDescriptor | getImageDescriptor()Gets the image descriptor for this input. | 
|  java.lang.String | getName()Gets the name of this editor input for display purposes. | 
|  org.eclipse.ui.IPersistableElement | getPersistable()Gets an object that can be used to save the state of this editor input. | 
|  org.eclipse.core.resources.IStorage | getStorage()Gets the underlying IStorageobject. | 
|  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(org.eclipse.ui.IMemento memento)Saves the state of the object in the given memento. | 
|  void | setConnectionInfo(ISQLEditorConnectionInfo connInfo)Sets the ISQLEditorConnectionInfoobject 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(org.eclipse.core.resources.IStorage storage)Sets the underlying IStorageobject. | 
| 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(org.eclipse.core.resources.IStorage storage)
IStorage
 object as the editor input source.
storage - the storage object for this editor input| Method Detail | 
|---|
public boolean exists()
exists in interface org.eclipse.ui.IEditorInputIEditorInput.exists()public java.lang.Object getAdapter(java.lang.Class adapter)
null if no such object can be found.
 This default implementation returns null.
getAdapter in interface org.eclipse.core.runtime.IAdaptableIAdaptable.getAdapter(java.lang.Class)public ISQLEditorConnectionInfo getConnectionInfo()
ISQLEditorConnectionInfo object for this editor input.
getConnectionInfo in interface ISQLEditorInputISQLEditorConnectionInfo objectpublic org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
getImageDescriptor in interface org.eclipse.ui.IEditorInputIEditorInput.getImageDescriptor()public java.lang.String getName()
getName in interface org.eclipse.ui.IEditorInputIEditorInput.getName()public org.eclipse.ui.IPersistableElement getPersistable()
getPersistable in interface org.eclipse.ui.IEditorInputIEditorInput.getPersistable()public org.eclipse.core.resources.IStorage getStorage()
IStorage object. The default storage
 object is implemented as a InputStream.)
getStorage in interface org.eclipse.ui.IStorageEditorInputIStorageEditorInput.getStorage()public java.lang.String getToolTipText()
getToolTipText in interface org.eclipse.ui.IEditorInputIEditorInput.getToolTipText()public java.lang.String getFactoryId()
getFactoryId in interface org.eclipse.ui.IPersistableElementIPersistableElement.getFactoryId()public void saveState(org.eclipse.ui.IMemento memento)
saveState in interface org.eclipse.ui.IPersistablememento - the storage area for object's stateIPersistable.saveState(org.eclipse.ui.IMemento)public void setConnectionInfo(ISQLEditorConnectionInfo connInfo)
ISQLEditorConnectionInfo object for this editor input to
 the given object.
setConnectionInfo in interface ISQLEditorInputconnInfo - the ISQLEditorConnectionInfo object to setpublic void setName(java.lang.String name)
name - the name to setpublic void setStorage(org.eclipse.core.resources.IStorage storage)
IStorage object.
storage - the storage object to usepublic boolean isConnectionRequired()
ISQLEditorInput
isConnectionRequired in interface ISQLEditorInputpublic 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 | |||||||||