|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ui.texteditor.AbstractDocumentProvider
org.eparapher.rcp.editors.SimpleDocumentProvider
public class SimpleDocumentProvider
A document provider that reads can handle IPathEditorInput
editor inputs. Documents are created by reading them in from the file that
the IPath contained in the editor input points to.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.eclipse.ui.texteditor.AbstractDocumentProvider |
|---|
org.eclipse.ui.texteditor.AbstractDocumentProvider.DocumentProviderOperation, org.eclipse.ui.texteditor.AbstractDocumentProvider.ElementInfo |
| Field Summary |
|---|
| Fields inherited from class org.eclipse.ui.texteditor.AbstractDocumentProvider |
|---|
PR10806_UC5_ENABLED, PR14469_ENABLED, STATUS_ERROR, STATUS_OK |
| Constructor Summary | |
|---|---|
SimpleDocumentProvider()
|
|
| Method Summary | |
|---|---|
protected org.eclipse.jface.text.source.IAnnotationModel |
createAnnotationModel(Object element)
|
protected org.eclipse.jface.text.IDocument |
createDocument(Object element)
|
protected void |
doSaveDocument(org.eclipse.core.runtime.IProgressMonitor monitor,
Object element,
org.eclipse.jface.text.IDocument document,
boolean overwrite)
|
protected org.eclipse.jface.operation.IRunnableContext |
getOperationRunner(org.eclipse.core.runtime.IProgressMonitor monitor)
|
boolean |
isModifiable(Object element)
|
boolean |
isReadOnly(Object element)
|
boolean |
isStateValidated(Object element)
|
protected void |
setupDocument(org.eclipse.jface.text.IDocument document)
Set up the document - default implementation does nothing. |
| Methods inherited from class org.eclipse.ui.texteditor.AbstractDocumentProvider |
|---|
aboutToChange, addElementStateListener, addUnchangedElementListeners, canSaveDocument, changed, connect, connected, createElementInfo, disconnect, disconnected, disposeElementInfo, doResetDocument, doSynchronize, doUpdateStateCache, doValidateState, executeOperation, fireElementContentAboutToBeReplaced, fireElementContentReplaced, fireElementDeleted, fireElementDirtyStateChanged, fireElementMoved, fireElementStateChangeFailed, fireElementStateChanging, fireElementStateValidationChanged, getAnnotationModel, getConnectedElements, getContentType, getDocument, getElementInfo, getModificationStamp, getProgressMonitor, getResetRule, getSaveRule, getStatus, getSynchronizationStamp, getSynchronizeRule, getValidateStateRule, invalidatesState, isDeleted, isNotSynchronizedException, isSynchronized, mustSaveDocument, removeElementStateListener, removeUnchangedElementListeners, resetDocument, saveDocument, setCanSaveDocument, setProgressMonitor, synchronize, updateStateCache, validateState |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleDocumentProvider()
| Method Detail |
|---|
protected org.eclipse.jface.text.IDocument createDocument(Object element)
throws org.eclipse.core.runtime.CoreException
createDocument in class org.eclipse.ui.texteditor.AbstractDocumentProviderorg.eclipse.core.runtime.CoreExceptionprotected void setupDocument(org.eclipse.jface.text.IDocument document)
document - the new document
protected org.eclipse.jface.text.source.IAnnotationModel createAnnotationModel(Object element)
throws org.eclipse.core.runtime.CoreException
createAnnotationModel in class org.eclipse.ui.texteditor.AbstractDocumentProviderorg.eclipse.core.runtime.CoreException
protected void doSaveDocument(org.eclipse.core.runtime.IProgressMonitor monitor,
Object element,
org.eclipse.jface.text.IDocument document,
boolean overwrite)
throws org.eclipse.core.runtime.CoreException
doSaveDocument in class org.eclipse.ui.texteditor.AbstractDocumentProviderorg.eclipse.core.runtime.CoreExceptionprotected org.eclipse.jface.operation.IRunnableContext getOperationRunner(org.eclipse.core.runtime.IProgressMonitor monitor)
getOperationRunner in class org.eclipse.ui.texteditor.AbstractDocumentProviderpublic boolean isModifiable(Object element)
isModifiable in interface org.eclipse.ui.texteditor.IDocumentProviderExtensionisModifiable in class org.eclipse.ui.texteditor.AbstractDocumentProviderpublic boolean isReadOnly(Object element)
isReadOnly in interface org.eclipse.ui.texteditor.IDocumentProviderExtensionisReadOnly in class org.eclipse.ui.texteditor.AbstractDocumentProviderpublic boolean isStateValidated(Object element)
isStateValidated in interface org.eclipse.ui.texteditor.IDocumentProviderExtensionisStateValidated in class org.eclipse.ui.texteditor.AbstractDocumentProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||