org.radrails.db.internal.ui
Class DataEditorInput
java.lang.Object
org.radrails.db.internal.ui.DataEditorInput
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable, org.eclipse.ui.IEditorInput
- public class DataEditorInput
- extends java.lang.Object
- implements org.eclipse.ui.IEditorInput
- Author:
- Marc
Constructor Summary |
DataEditorInput(java.lang.String query,
Database database)
Creates a new DataEditorInput object. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataEditorInput
public DataEditorInput(java.lang.String query,
Database database)
- Creates a new DataEditorInput object.
- Parameters:
query
- The query displayed by this editor input.database
- The database the query is executed in.
exists
public boolean exists()
- Specified by:
exists
in interface org.eclipse.ui.IEditorInput
- See Also:
IEditorInput.exists()
getImageDescriptor
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
- Specified by:
getImageDescriptor
in interface org.eclipse.ui.IEditorInput
- See Also:
IEditorInput.getImageDescriptor()
getName
public java.lang.String getName()
- Specified by:
getName
in interface org.eclipse.ui.IEditorInput
- See Also:
IEditorInput.getName()
getPersistable
public org.eclipse.ui.IPersistableElement getPersistable()
- Specified by:
getPersistable
in interface org.eclipse.ui.IEditorInput
- See Also:
IEditorInput.getPersistable()
getToolTipText
public java.lang.String getToolTipText()
- Specified by:
getToolTipText
in interface org.eclipse.ui.IEditorInput
- See Also:
IEditorInput.getToolTipText()
getAdapter
public java.lang.Object getAdapter(java.lang.Class adapter)
- Specified by:
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
- See Also:
IAdaptable.getAdapter(java.lang.Class)
getQuery
public java.lang.String getQuery()
- Gets the query used.
- Returns:
- The query represented as a String.
getDatabase
public Database getDatabase()
- Gets the database for this editor input.
- Returns:
- The Database that this editor input uses.