org.eclipse.gmt.umlx.editor.common
Class NullProvider
java.lang.Object
org.eclipse.gmt.umlx.editor.common.NullProvider
- All Implemented Interfaces:
- org.eclipse.ui.editors.text.IStorageDocumentProvider, org.eclipse.ui.texteditor.IDocumentProvider, org.eclipse.ui.texteditor.IDocumentProviderExtension, org.eclipse.ui.texteditor.IDocumentProviderExtension2, org.eclipse.ui.texteditor.IDocumentProviderExtension3, org.eclipse.ui.texteditor.IDocumentProviderExtension4, org.eclipse.ui.texteditor.IDocumentProviderExtension5
public class NullProvider
- extends java.lang.Object
- implements org.eclipse.ui.texteditor.IDocumentProvider, org.eclipse.ui.texteditor.IDocumentProviderExtension, org.eclipse.ui.texteditor.IDocumentProviderExtension2, org.eclipse.ui.texteditor.IDocumentProviderExtension3, org.eclipse.ui.texteditor.IDocumentProviderExtension4, org.eclipse.ui.texteditor.IDocumentProviderExtension5, org.eclipse.ui.editors.text.IStorageDocumentProvider
NullProvider provides stub behaviour for MultiPageEditPart pages until their contents are
demand-created when the page is first opened.
Field Summary |
static org.eclipse.ui.texteditor.IDocumentProvider |
INSTANCE
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static org.eclipse.ui.texteditor.IDocumentProvider INSTANCE
NullProvider
public NullProvider()
connect
public void connect(java.lang.Object element)
throws org.eclipse.core.runtime.CoreException
- Specified by:
connect
in interface org.eclipse.ui.texteditor.IDocumentProvider
- Throws:
org.eclipse.core.runtime.CoreException
disconnect
public void disconnect(java.lang.Object element)
- Specified by:
disconnect
in interface org.eclipse.ui.texteditor.IDocumentProvider
getDocument
public org.eclipse.jface.text.IDocument getDocument(java.lang.Object element)
- Specified by:
getDocument
in interface org.eclipse.ui.texteditor.IDocumentProvider
resetDocument
public void resetDocument(java.lang.Object element)
throws org.eclipse.core.runtime.CoreException
- Specified by:
resetDocument
in 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:
saveDocument
in interface org.eclipse.ui.texteditor.IDocumentProvider
- Throws:
org.eclipse.core.runtime.CoreException
getModificationStamp
public long getModificationStamp(java.lang.Object element)
- Specified by:
getModificationStamp
in interface org.eclipse.ui.texteditor.IDocumentProvider
getSynchronizationStamp
public long getSynchronizationStamp(java.lang.Object element)
- Specified by:
getSynchronizationStamp
in interface org.eclipse.ui.texteditor.IDocumentProvider
isDeleted
public boolean isDeleted(java.lang.Object element)
- Specified by:
isDeleted
in interface org.eclipse.ui.texteditor.IDocumentProvider
mustSaveDocument
public boolean mustSaveDocument(java.lang.Object element)
- Specified by:
mustSaveDocument
in interface org.eclipse.ui.texteditor.IDocumentProvider
canSaveDocument
public boolean canSaveDocument(java.lang.Object element)
- Specified by:
canSaveDocument
in interface org.eclipse.ui.texteditor.IDocumentProvider
getAnnotationModel
public org.eclipse.jface.text.source.IAnnotationModel getAnnotationModel(java.lang.Object element)
- Specified by:
getAnnotationModel
in interface org.eclipse.ui.texteditor.IDocumentProvider
aboutToChange
public void aboutToChange(java.lang.Object element)
- Specified by:
aboutToChange
in interface org.eclipse.ui.texteditor.IDocumentProvider
changed
public void changed(java.lang.Object element)
- Specified by:
changed
in interface org.eclipse.ui.texteditor.IDocumentProvider
addElementStateListener
public void addElementStateListener(org.eclipse.ui.texteditor.IElementStateListener listener)
- Specified by:
addElementStateListener
in interface org.eclipse.ui.texteditor.IDocumentProvider
removeElementStateListener
public void removeElementStateListener(org.eclipse.ui.texteditor.IElementStateListener listener)
- Specified by:
removeElementStateListener
in interface org.eclipse.ui.texteditor.IDocumentProvider
isReadOnly
public boolean isReadOnly(java.lang.Object element)
- Specified by:
isReadOnly
in interface org.eclipse.ui.texteditor.IDocumentProviderExtension
isModifiable
public boolean isModifiable(java.lang.Object element)
- Specified by:
isModifiable
in interface org.eclipse.ui.texteditor.IDocumentProviderExtension
validateState
public void validateState(java.lang.Object element,
java.lang.Object computationContext)
throws org.eclipse.core.runtime.CoreException
- Specified by:
validateState
in interface org.eclipse.ui.texteditor.IDocumentProviderExtension
- Throws:
org.eclipse.core.runtime.CoreException
isStateValidated
public boolean isStateValidated(java.lang.Object element)
- Specified by:
isStateValidated
in interface org.eclipse.ui.texteditor.IDocumentProviderExtension
updateStateCache
public void updateStateCache(java.lang.Object element)
throws org.eclipse.core.runtime.CoreException
- Specified by:
updateStateCache
in interface org.eclipse.ui.texteditor.IDocumentProviderExtension
- Throws:
org.eclipse.core.runtime.CoreException
setCanSaveDocument
public void setCanSaveDocument(java.lang.Object element)
- Specified by:
setCanSaveDocument
in interface org.eclipse.ui.texteditor.IDocumentProviderExtension
getStatus
public org.eclipse.core.runtime.IStatus getStatus(java.lang.Object element)
- Specified by:
getStatus
in interface org.eclipse.ui.texteditor.IDocumentProviderExtension
synchronize
public void synchronize(java.lang.Object element)
throws org.eclipse.core.runtime.CoreException
- Specified by:
synchronize
in interface org.eclipse.ui.texteditor.IDocumentProviderExtension
- Throws:
org.eclipse.core.runtime.CoreException
setProgressMonitor
public void setProgressMonitor(org.eclipse.core.runtime.IProgressMonitor progressMonitor)
- Specified by:
setProgressMonitor
in interface org.eclipse.ui.texteditor.IDocumentProviderExtension2
getProgressMonitor
public org.eclipse.core.runtime.IProgressMonitor getProgressMonitor()
- Specified by:
getProgressMonitor
in interface org.eclipse.ui.texteditor.IDocumentProviderExtension2
isSynchronized
public boolean isSynchronized(java.lang.Object element)
- Specified by:
isSynchronized
in interface org.eclipse.ui.texteditor.IDocumentProviderExtension3
isNotSynchronizedException
public boolean isNotSynchronizedException(java.lang.Object element,
org.eclipse.core.runtime.CoreException ex)
- Specified by:
isNotSynchronizedException
in interface org.eclipse.ui.texteditor.IDocumentProviderExtension5
getDefaultEncoding
public java.lang.String getDefaultEncoding()
- Specified by:
getDefaultEncoding
in interface org.eclipse.ui.editors.text.IStorageDocumentProvider
getEncoding
public java.lang.String getEncoding(java.lang.Object element)
- Specified by:
getEncoding
in interface org.eclipse.ui.editors.text.IStorageDocumentProvider
setEncoding
public void setEncoding(java.lang.Object element,
java.lang.String encoding)
- Specified by:
setEncoding
in interface org.eclipse.ui.editors.text.IStorageDocumentProvider
getContentType
public org.eclipse.core.runtime.content.IContentType getContentType(java.lang.Object element)
throws org.eclipse.core.runtime.CoreException
- Specified by:
getContentType
in interface org.eclipse.ui.texteditor.IDocumentProviderExtension4
- Throws:
org.eclipse.core.runtime.CoreException