|
||||||||||
| 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 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
getAdapter in interface org.eclipse.core.runtime.IAdaptableIAdaptable.getAdapter(java.lang.Class)public java.io.InputStream getContents()
getContents in interface org.eclipse.core.resources.IStorageIStorage.getContents()public java.lang.String getContentsString()
public org.eclipse.core.runtime.IPath getFullPath()
getFullPath in interface org.eclipse.core.resources.IStoragenull- See Also:
IStorage.getFullPath()public java.lang.String getName()
getName in interface org.eclipse.core.resources.IStorageIStorage.getName()public boolean isReadOnly()
isReadOnly in interface org.eclipse.core.resources.IStorageIStorage.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 | |||||||||