public class ChildDocument extends ProjectionDocument
ProjectionDocument. This class
exists for compatibility reasons.
Internal class. This class is not intended to be used by clients.
IDocumentExtension.IReplaceDEFAULT_CATEGORY, DEFAULT_CONTENT_TYPEDEFAULT_PARTITIONINGUNKNOWN_MODIFICATION_STAMP| Constructor and Description |
|---|
ChildDocument(IDocument masterDocument)
Creates a new child document.
|
| Modifier and Type | Method and Description |
|---|---|
IDocument |
getParentDocument()
Returns the parent document of this child document.
|
Position |
getParentDocumentRange()
Returns the parent document range of this child document.
|
void |
setParentDocumentRange(int offset,
int length)
Sets the parent document range covered by this child document to the
given range.
|
adaptProjectionToMasterChange, addMasterDocumentRange, computeProjectedMasterRegions, computeUnprojectedMasterRegions, dispose, fireDocumentAboutToBeChanged, fireDocumentChanged, getDefaultLineDelimiter, getFragments, getMasterDocument, getProjectionMapping, getSegments, isUpdating, masterDocumentAboutToBeChanged, masterDocumentChanged, registerPostNotificationReplace, removeMasterDocumentRange, replace, replaceMasterDocumentRanges, set, setAutoExpandMode, updateDocumentStructuresacceptPostNotificationReplaces, addDocumentListener, addDocumentPartitioningListener, addDocumentRewriteSessionListener, addPosition, addPosition, addPositionCategory, addPositionUpdater, addPrenotifiedDocumentListener, checkStateOfPartitioner, completeInitialization, computeIndexInCategory, computeIndexInPositionList, computeNumberOfLines, computePartitioning, computePartitioning, containsPosition, containsPositionCategory, doFireDocumentChanged, doFireDocumentChanged, doFireDocumentChanged2, fireDocumentPartitioningChanged, fireDocumentPartitioningChanged, fireDocumentPartitioningChanged, fireRewriteSessionChanged, get, get, getActiveRewriteSession, getChar, getContentType, getContentType, getDocumentListeners, getDocumentManagedPositions, getDocumentPartitioner, getDocumentPartitioner, getDocumentPartitioningListeners, getLegalContentTypes, getLegalContentTypes, getLegalLineDelimiters, getLength, getLineDelimiter, getLineInformation, getLineInformationOfOffset, getLineLength, getLineOffset, getLineOfOffset, getModificationStamp, getNumberOfLines, getNumberOfLines, getPartition, getPartition, getPartitionings, getPositionCategories, getPositions, getPositionUpdaters, getStore, getTracker, ignorePostNotificationReplaces, insertPositionUpdater, removeDocumentListener, removeDocumentPartitioningListener, removeDocumentRewriteSessionListener, removePosition, removePosition, removePositionCategory, removePositionUpdater, removePrenotifiedDocumentListener, repairLineInformation, replace, resumeListenerNotification, resumePostNotificationProcessing, search, set, setDocumentPartitioner, setDocumentPartitioner, setInitialLineDelimiter, setLineTracker, setTextStore, startRewriteSession, startRewriteSessionOnPartitioners, startSequentialRewrite, stopListenerNotification, stopPostNotificationProcessing, stopRewriteSession, stopRewriteSessionOnPartitioners, stopSequentialRewrite, updatePositionspublic ChildDocument(IDocument masterDocument)
masterDocument - @inheritDocpublic IDocument getParentDocument()
ProjectionDocument.getMasterDocument()public void setParentDocumentRange(int offset,
int length)
throws BadLocationException
offset - the offset of the rangelength - the length of the rangeBadLocationException - if the given range is not validpublic Position getParentDocumentRange()
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.