TextDocument Class

com.bea.ide.lang.text
TextDocument Class

public class TextDocument

    extends DefaultSourceDocument

A file handler for simple text files.


Hierarchy
Object
  DefaultElement
    DefaultDocument
      DefaultSourceDocument
        TextDocument
All Implemented Interfaces

ICookieSupport, IDocument, IDriverSupport, IElement, IPropertySupport, ISourceDocument
Direct Known Subclasses

JavaDocument, XmlDocument

Nested Class Summary

 
Nested classes from  com.bea.ide.document.DefaultDocument
DefaultDocument.IgnoreFileSystemEvent
 

Field Summary

   
Fields from  com.bea.ide.sourceeditor.DefaultSourceDocument
PROP_ColumnNumber, PROP_LineNumber
 
Fields from  com.bea.ide.document.DefaultDocument
KEY_MakeEditableFailed
 
Fields from interface com.bea.ide.document.IDocument
KEY_HiddenEdit, KEY_UndoManager, PROP_DocumentDeleted, PROP_DocumentDirty, PROP_DocumentEditable, PROP_DocumentReadOnly, PROP_DocumentURI, PROP_ElementModified
 
Fields from interface com.bea.ide.sourceeditor.ISourceDocument
PROP_HAS_ERRORS, PROP_HAS_WARNINGS, PROP_LAST_COMPILATION, PROP_LAST_COMPILATION_REQUEST, PROP_LAST_COMPILATION_TIME, PROP_MID_TWOWAY_EDIT
 

Constructor Summary

TextDocument(Class handler, URI uriFile)

Creates a new document using the appropriate handler, initializing the document with data found at the specified URI.
 

Method Summary

 
Methods from  com.bea.ide.sourceeditor.DefaultSourceDocument
createDrivers, createUndoableEditListener, createUndoManager, fireElementChildAdded, fireElementChildRemoved, fireElementModified, getElementFromOffset, getHandlerId, getReader, getSourceModel, getTokenFromOffset, getViewInfo, isMerging, mergeMetadata, onOpen, onRemove, onSave, reload, requestTwoWayEdit, setRootElement, uriChanged, waitForPendingCompilations, waitForRootElement
 
Methods from  com.bea.ide.document.DefaultDocument
addCookie, addDriver, addElementChangeListener, addPropertyChangeListener, addPropertyChangeListener, computeEditable, createReadOnlyListener, fileSystemChanged, finalize, fireElementChildAdded, fireElementChildRemoved, fireElementModified, fireElementModified, fireElementModified, getCookie, getDriver, getIFile, getInputStream, getProperty, getRootElement, getRootElement, getURI, isBinary, isEditable, isModified, isReadOnly, makeEditable, onOpen, onRemove, onSave, removeCookie, removeElementChangeListener, removePropertyChangeListener, removePropertyChangeListener, setProperty, setRootElement, uriChanged, waitForRootElement
 
Methods from  com.bea.ide.element.DefaultElement
getProperty, getPropertyDescriptors, setProperty
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface com.bea.ide.core.ICookieSupport
addCookie, getCookie, removeCookie
 
Methods from interface com.bea.ide.document.IDocument
addElementChangeListener, getHandlerId, getIFile, getInputStream, getReader, getRootElement, getRootElement, getURI, getViewInfo, isBinary, isEditable, isModified, isReadOnly, makeEditable, onOpen, onRemove, onSave, reload, removeElementChangeListener, waitForRootElement
 
Methods from interface com.bea.ide.core.IDriverSupport
getDriver
 
Methods from interface com.bea.ide.element.IElement
getProperty, getPropertyDescriptors, setProperty
 
Methods from interface com.bea.ide.core.IPropertySupport
addPropertyChangeListener, addPropertyChangeListener, getProperty, removePropertyChangeListener, removePropertyChangeListener, setProperty
 
Methods from interface com.bea.ide.sourceeditor.ISourceDocument
getElementFromOffset, getSourceModel, getTokenFromOffset, mergeMetadata
 

Constructor Detail

TextDocument

public TextDocument(Class handler, 
                    URI uriFile)
Creates a new document using the appropriate handler, initializing the document with data found at the specified URI.