|
||||||||||
| 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. |
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 object
public SQLEditorStorage(java.lang.String name,
java.lang.String source)
name - the name for this storage objectsource - the content source for this object| Method Detail |
|---|
public java.lang.Object getAdapter(java.lang.Class key)
null
org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)public java.io.InputStream getContents()
org.eclipse.core.resources.IStorage#getContents()public java.lang.String getContentsString()
public IPath getFullPath()
null- See Also:
org.eclipse.core.resources.IStorage#getFullPath()public java.lang.String getName()
org.eclipse.core.resources.IStorage#getName()public boolean isReadOnly()
org.eclipse.core.resources.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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||