org.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.routineeditor
Class RoutineFormDocumentProviderAdapter
java.lang.Object
   org.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.routineeditor.RoutineFormDocumentProviderAdapter
org.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.routineeditor.RoutineFormDocumentProviderAdapter
- All Implemented Interfaces: 
- IRoutineEditorDocumentProvider, org.eclipse.ui.texteditor.IDocumentProvider, org.eclipse.ui.texteditor.IDocumentProviderExtension2, org.eclipse.ui.texteditor.IDocumentProviderExtension3
- public class RoutineFormDocumentProviderAdapter 
- extends java.lang.Object- implements IRoutineEditorDocumentProvider
Provides a default empty implementation of IRoutineEditorDocumentProvider to be used inside a FormEditor
- Author:
- Hui Cao
 
 
| Methods inherited from class java.lang.Object | 
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
RoutineFormDocumentProviderAdapter
public RoutineFormDocumentProviderAdapter()
refreshFromDatabase
public void refreshFromDatabase(java.lang.Object element,
                                org.eclipse.datatools.sqltools.core.IControlConnection controlCon,
                                org.eclipse.datatools.sqltools.core.ProcIdentifier proc)
                         throws org.eclipse.core.runtime.CoreException,
                                java.sql.SQLException
- Description copied from interface: IRoutineEditorDocumentProvider
- Refreshs the routine object from database.
 
- 
- Specified by:
- refreshFromDatabasein interface- IRoutineEditorDocumentProvider
 
- 
- Parameters:
- element- the routine object
- controlCon- control connection that's used by the routine editor
- proc- the routine identifier
- Throws:
- org.eclipse.core.runtime.CoreException
- java.sql.SQLException
 
aboutToChange
public void aboutToChange(java.lang.Object element)
- 
- Specified by:
- aboutToChangein interface- org.eclipse.ui.texteditor.IDocumentProvider
 
- 
 
addElementStateListener
public void addElementStateListener(org.eclipse.ui.texteditor.IElementStateListener listener)
- 
- Specified by:
- addElementStateListenerin interface- org.eclipse.ui.texteditor.IDocumentProvider
 
- 
 
canSaveDocument
public boolean canSaveDocument(java.lang.Object element)
- 
- Specified by:
- canSaveDocumentin interface- org.eclipse.ui.texteditor.IDocumentProvider
 
- 
 
changed
public void changed(java.lang.Object element)
- 
- Specified by:
- changedin interface- org.eclipse.ui.texteditor.IDocumentProvider
 
- 
 
connect
public void connect(java.lang.Object element)
             throws org.eclipse.core.runtime.CoreException
- 
- Specified by:
- connectin interface- org.eclipse.ui.texteditor.IDocumentProvider
 
- 
- Throws:
- org.eclipse.core.runtime.CoreException
 
disconnect
public void disconnect(java.lang.Object element)
- 
- Specified by:
- disconnectin interface- org.eclipse.ui.texteditor.IDocumentProvider
 
- 
 
getAnnotationModel
public org.eclipse.jface.text.source.IAnnotationModel getAnnotationModel(java.lang.Object element)
- 
- Specified by:
- getAnnotationModelin interface- org.eclipse.ui.texteditor.IDocumentProvider
 
- 
 
getDocument
public org.eclipse.jface.text.IDocument getDocument(java.lang.Object element)
- 
- Specified by:
- getDocumentin interface- org.eclipse.ui.texteditor.IDocumentProvider
 
- 
 
getModificationStamp
public long getModificationStamp(java.lang.Object element)
- 
- Specified by:
- getModificationStampin interface- org.eclipse.ui.texteditor.IDocumentProvider
 
- 
 
getSynchronizationStamp
public long getSynchronizationStamp(java.lang.Object element)
- 
- Specified by:
- getSynchronizationStampin interface- org.eclipse.ui.texteditor.IDocumentProvider
 
- 
 
isDeleted
public boolean isDeleted(java.lang.Object element)
- 
- Specified by:
- isDeletedin interface- org.eclipse.ui.texteditor.IDocumentProvider
 
- 
 
mustSaveDocument
public boolean mustSaveDocument(java.lang.Object element)
- 
- Specified by:
- mustSaveDocumentin interface- org.eclipse.ui.texteditor.IDocumentProvider
 
- 
 
removeElementStateListener
public void removeElementStateListener(org.eclipse.ui.texteditor.IElementStateListener listener)
- 
- Specified by:
- removeElementStateListenerin interface- org.eclipse.ui.texteditor.IDocumentProvider
 
- 
 
resetDocument
public void resetDocument(java.lang.Object element)
                   throws org.eclipse.core.runtime.CoreException
- 
- Specified by:
- resetDocumentin interface- org.eclipse.ui.texteditor.IDocumentProvider
 
- 
- Throws:
- org.eclipse.core.runtime.CoreException
 
saveDocument
public void saveDocument(org.eclipse.core.runtime.IProgressMonitor monitor,
                         java.lang.Object element,
                         org.eclipse.jface.text.IDocument document,
                         boolean overwrite)
                  throws org.eclipse.core.runtime.CoreException
- 
- Specified by:
- saveDocumentin interface- org.eclipse.ui.texteditor.IDocumentProvider
 
- 
- Throws:
- org.eclipse.core.runtime.CoreException
 
getProgressMonitor
public org.eclipse.core.runtime.IProgressMonitor getProgressMonitor()
- 
- Specified by:
- getProgressMonitorin interface- org.eclipse.ui.texteditor.IDocumentProviderExtension2
 
- 
 
setProgressMonitor
public void setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
- 
- Specified by:
- setProgressMonitorin interface- org.eclipse.ui.texteditor.IDocumentProviderExtension2
 
- 
 
isSynchronized
public boolean isSynchronized(java.lang.Object element)
- 
- Specified by:
- isSynchronizedin interface- org.eclipse.ui.texteditor.IDocumentProviderExtension3
 
-