|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFileEditorInput
org.eclipse.datatools.sqltools.sqleditor.SQLEditorFileEditorInput
This class implements the ISQLEditorInput
interface using a
FileEditorInput
as the base. It is provided as a convenience
for callers of the SQL Editor who want to open the SQL Editor on a file.
Constructor Summary | |
SQLEditorFileEditorInput(IFile aFile)
Creates an instance of this class with the given file as the input. |
Method Summary | |
static IFile |
createTempFileResource(java.lang.String initialFileContent)
Creates and returns a file resource in a temporary location (determined by the operating system) with the given file content. |
static IFile |
createTempFileResource(java.lang.String initialFileContent,
java.lang.String fileNamePrefix,
java.lang.String fileExtension)
Creates and returns a file resource in a temporary location (determined by the operating system) with the given file content, file name prefix and file extension. |
ISQLEditorConnectionInfo |
getConnectionInfo()
Gets the ISQLEditorConnectionInfo associated with this input. |
java.lang.String |
getFactoryId()
Returns the id of the element factory which should be used to re-create this object. |
void |
saveState(IMemento memento)
Saves the state of the object in the given memento. |
void |
setConnectionInfo(ISQLEditorConnectionInfo connInfo)
Sets the ISQLEditorConnectionInfo associated with this input to the given
object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SQLEditorFileEditorInput(IFile aFile)
aFile
- the file to associate with this inputMethod Detail |
public static IFile createTempFileResource(java.lang.String initialFileContent)
initialFileContent
- the initial content of the file
null
if the file was not
created successfullypublic static IFile createTempFileResource(java.lang.String initialFileContent, java.lang.String fileNamePrefix, java.lang.String fileExtension)
initialFileContent
- the initial content of the filefileNamePrefix
- the name (prefix) of the new filefileExtension
- the extension of the file. It should begin with "."
null
if the file was not
created successfullypublic ISQLEditorConnectionInfo getConnectionInfo()
ISQLEditorConnectionInfo
associated with this input.
getConnectionInfo
in interface ISQLEditorInput
ISQLEditorConnectionInfo
objectpublic 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
associated with this input to the given
object.
setConnectionInfo
in interface ISQLEditorInput
connInfo
- the ISQLEditorConnectionInfo
object to set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |