Class ChildDocument

All Implemented Interfaces:
IDocument, IDocumentExtension, IDocumentExtension2, IDocumentExtension3, IDocumentExtension4, IRepairableDocument, IRepairableDocumentExtension

public class ChildDocument extends ProjectionDocument
Implementation of a child document based on ProjectionDocument. This class exists for compatibility reasons.

Internal class. This class is not intended to be used by clients.

Since:
3.0
Restriction:
This class is not intended to be subclassed by clients.
Restriction:
This class is not intended to be instantiated by clients.
  • Constructor Details

    • ChildDocument

      public ChildDocument(IDocument masterDocument)
      Creates a new child document.
      Parameters:
      masterDocument - the master document
  • Method Details

    • getParentDocument

      public IDocument getParentDocument()
      Returns the parent document of this child document.
      Returns:
      the parent document of this child document
      See Also:
    • setParentDocumentRange

      public void setParentDocumentRange(int offset, int length) throws BadLocationException
      Sets the parent document range covered by this child document to the given range.
      Parameters:
      offset - the offset of the range
      length - the length of the range
      Throws:
      BadLocationException - if the given range is not valid
    • getParentDocumentRange

      public Position getParentDocumentRange()
      Returns the parent document range of this child document.
      Returns:
      the parent document range of this child document