|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.sqleditor.SQLEditorStorage
public class SQLEditorStorage
This class implements the IStorage interface to facilitate launching the SQL Editor from an editor input that isn't based on a file.
Constructor Summary | |
---|---|
SQLEditorStorage(java.lang.String source)
Creates an instance of this class with the given string as the storage source content. |
|
SQLEditorStorage(java.lang.String name,
java.lang.String source)
Creates an instance of this class with the given name and the given string as the storage content. |
Method Summary | |
---|---|
java.lang.Object |
getAdapter(java.lang.Class key)
Returns an object which is an instance of the given class associated with this object. |
java.lang.String |
getCharset()
|
java.io.InputStream |
getContents()
Returns an open input stream on the contents of this storage. |
java.lang.String |
getContentsString()
Returns the content of this object as a string. |
org.eclipse.core.runtime.IPath |
getFullPath()
Returns the full path of this storage. |
java.lang.String |
getName()
Returns the name of this storage. |
boolean |
isReadOnly()
Returns whether this storage is read-only. |
void |
setContents(java.io.InputStream contents)
Sets the input stream that acts as the contents of this storage to the given input stream. |
void |
setName(java.lang.String name)
Sets the name of this storage object to the given name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SQLEditorStorage(java.lang.String source)
source
- the source content for this objectpublic SQLEditorStorage(java.lang.String name, java.lang.String source)
name
- the name for this storage objectsource
- the content source for this objectMethod Detail |
---|
public java.lang.Object getAdapter(java.lang.Class key)
null
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
IAdaptable.getAdapter(java.lang.Class)
public java.io.InputStream getContents()
getContents
in interface org.eclipse.core.resources.IStorage
IStorage.getContents()
public java.lang.String getContentsString()
public org.eclipse.core.runtime.IPath getFullPath()
getFullPath
in interface org.eclipse.core.resources.IStorage
null- See Also:
IStorage.getFullPath()
public java.lang.String getName()
getName
in interface org.eclipse.core.resources.IStorage
IStorage.getName()
public boolean isReadOnly()
isReadOnly
in interface org.eclipse.core.resources.IStorage
IStorage.isReadOnly()
public void setContents(java.io.InputStream contents)
contents
- the contents stream to usepublic void setName(java.lang.String name)
name
- the name of this storage objectpublic java.lang.String getCharset()
getCharset
in interface org.eclipse.core.resources.IEncodedStorage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |