org.eclipse.ui.examples.rcp.texteditor.editors
Class SimpleDocumentProvider

java.lang.Object
  extended by org.eclipse.ui.texteditor.AbstractDocumentProvider
      extended by org.eclipse.ui.examples.rcp.texteditor.editors.SimpleDocumentProvider
All Implemented Interfaces:
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
Direct Known Subclasses:
XMLDocumentProvider

public class SimpleDocumentProvider
extends org.eclipse.ui.texteditor.AbstractDocumentProvider

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.

Since:
3.0

Constructor Summary
SimpleDocumentProvider()
           
 
Method Summary
 boolean isModifiable(java.lang.Object element)
           
 boolean isReadOnly(java.lang.Object element)
           
 boolean isStateValidated(java.lang.Object element)
           
 
Methods inherited from class org.eclipse.ui.texteditor.AbstractDocumentProvider
aboutToChange, addElementStateListener, canSaveDocument, changed, connect, disconnect, getAnnotationModel, getContentType, getDocument, getModificationStamp, getProgressMonitor, getStatus, getSynchronizationStamp, isDeleted, isNotSynchronizedException, isSynchronized, mustSaveDocument, removeElementStateListener, resetDocument, saveDocument, setCanSaveDocument, setProgressMonitor, synchronize, updateStateCache, validateState
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDocumentProvider

public SimpleDocumentProvider()
Method Detail

isModifiable

public boolean isModifiable(java.lang.Object element)
Specified by:
isModifiable in interface org.eclipse.ui.texteditor.IDocumentProviderExtension
Overrides:
isModifiable in class org.eclipse.ui.texteditor.AbstractDocumentProvider

isReadOnly

public boolean isReadOnly(java.lang.Object element)
Specified by:
isReadOnly in interface org.eclipse.ui.texteditor.IDocumentProviderExtension
Overrides:
isReadOnly in class org.eclipse.ui.texteditor.AbstractDocumentProvider

isStateValidated

public boolean isStateValidated(java.lang.Object element)
Specified by:
isStateValidated in interface org.eclipse.ui.texteditor.IDocumentProviderExtension
Overrides:
isStateValidated in class org.eclipse.ui.texteditor.AbstractDocumentProvider