Methods in
org.eclipse.jface.text that throw
BadLocationException
|
void
|
DocumentCommand.
addCommand
(int commandOffset,
int commandLength,
String commandText,
IDocumentListener commandOwner)
Adds an additional replace command. |
void
|
AbstractDocument.
addPosition
(
Position position)
|
void
|
IDocument.
addPosition
(
Position position)
Adds the position to the document's default position category. |
void
|
AbstractDocument.
addPosition
(
String category,
Position position)
|
void
|
IDocument.
addPosition
(
String category,
Position position)
Adds the position to the specified position category of the document. |
protected void
|
AbstractLineTracker.
checkRewriteSession
()
Checks the presence of a rewrite session and flushes it. |
int
|
AbstractDocument.
computeIndexInCategory
(
String category,
int offset)
|
int
|
IDocument.
computeIndexInCategory
(
String category,
int offset)
Computes the index at which a Position with the
specified offset would be inserted into the given category. |
static
ITypedRegion[]
|
TextUtilities.
computePartitioning
(
IDocument document,
String partitioning,
int offset,
int length,
boolean includeZeroLengthPartitions)
Computes and returns the partitioning for the given region of the given
document for the given partitioning name. |
ITypedRegion[]
|
AbstractDocument.
computePartitioning
(int offset,
int length)
|
ITypedRegion[]
|
IDocument.
computePartitioning
(int offset,
int length)
Computes the partitioning of the given document range using the
document's partitioner. |
ITypedRegion[]
|
AbstractDocument.
computePartitioning
(
String partitioning,
int offset,
int length,
boolean includeZeroLengthPartitions)
|
ITypedRegion[]
|
IDocumentExtension3.
computePartitioning
(
String partitioning,
int offset,
int length,
boolean includeZeroLengthPartitions)
Computes the partitioning of the given document range based on the given
partitioning type. |
IRegion
|
FindReplaceDocumentAdapter.
find
(int startOffset,
String findString,
boolean forwardSearch,
boolean caseSensitive,
boolean wholeWord,
boolean regExSearch)
Returns the location of a given string in this adapter's document based on a set of search criteria. |
protected int
|
DefaultIndentLineAutoEditStrategy.
findEndOfWhiteSpace
(
IDocument document,
int offset,
int end)
Returns the first offset greater than offset and smaller than
end whose character is not a space or tab character. |
protected void
|
AbstractLineTracker.
flushRewriteSession
()
Flushes the active rewrite session. |
String
|
AbstractDocument.
get
(int pos,
int length)
|
String
|
IDocument.
get
(int offset,
int length)
Returns this document's text for the specified range. |
char
|
AbstractDocument.
getChar
(int pos)
|
char
|
IDocument.
getChar
(int offset)
Returns the character at the given document offset in this document. |
static
String
|
TextUtilities.
getContentType
(
IDocument document,
String partitioning,
int offset,
boolean preferOpenPartitions)
Returns the content type at the given offset of the given document. |
String
|
AbstractDocument.
getContentType
(int offset)
|
String
|
IDocument.
getContentType
(int offset)
Returns the type of the document partition containing the given offset. |
String
|
AbstractDocument.
getContentType
(
String partitioning,
int offset,
boolean preferOpenPartitions)
|
String
|
IDocumentExtension3.
getContentType
(
String partitioning,
int offset,
boolean preferOpenPartitions)
Returns the type of the document partition containing the given offset
for the given partitioning. |
static
IRegion[]
|
JFaceTextUtil.
getCoveredRanges
(
ITextViewer viewer,
ITextSelection selection)
Returns the text regions covered by the given selection in the given viewer. |
IRegion[]
|
IDocumentInformationMappingExtension.
getExactCoverage
(
IRegion originRegion)
Returns the maximal sub-regions of the given origin region which are
completely covered. |
String
|
AbstractLineTracker.
getLineDelimiter
(int line)
|
String
|
AbstractDocument.
getLineDelimiter
(int line)
|
String
|
ILineTracker.
getLineDelimiter
(int line)
Returns the line delimiter of the specified line. |
String
|
IDocument.
getLineDelimiter
(int line)
Returns the line delimiter of that line or null if the
line is not closed with a line delimiter. |
IRegion
|
AbstractLineTracker.
getLineInformation
(int line)
|
IRegion
|
AbstractDocument.
getLineInformation
(int line)
|
IRegion
|
ILineTracker.
getLineInformation
(int line)
Returns a line description of the given line. |
IRegion
|
IDocument.
getLineInformation
(int line)
Returns a description of the specified line. |
IRegion
|
AbstractLineTracker.
getLineInformationOfOffset
(int offset)
|
IRegion
|
AbstractDocument.
getLineInformationOfOffset
(int offset)
|
IRegion
|
ILineTracker.
getLineInformationOfOffset
(int offset)
Returns a line description of the line at the given offset. |
IRegion
|
IDocument.
getLineInformationOfOffset
(int offset)
Returns a description of the line at the given offset. |
int
|
AbstractLineTracker.
getLineLength
(int line)
|
int
|
AbstractDocument.
getLineLength
(int line)
|
int
|
ILineTracker.
getLineLength
(int line)
Returns length of the specified line including the line's delimiter. |
int
|
IDocument.
getLineLength
(int line)
Returns the length of the given line including the line's delimiter. |
int
|
AbstractLineTracker.
getLineNumberOfOffset
(int offset)
|
int
|
ILineTracker.
getLineNumberOfOffset
(int offset)
Returns the line number the character at the given offset belongs to. |
int
|
AbstractLineTracker.
getLineOffset
(int line)
|
int
|
AbstractDocument.
getLineOffset
(int line)
|
int
|
ILineTracker.
getLineOffset
(int line)
Returns the position of the first character of the specified line. |
int
|
IDocument.
getLineOffset
(int line)
Determines the offset of the first character of the given line. |
int
|
AbstractDocument.
getLineOfOffset
(int pos)
|
int
|
IDocument.
getLineOfOffset
(int offset)
Returns the number of the line at which the character of the specified position is located. |
int
|
AbstractLineTracker.
getNumberOfLines
(int offset,
int length)
|
int
|
AbstractDocument.
getNumberOfLines
(int offset,
int length)
|
int
|
ILineTracker.
getNumberOfLines
(int offset,
int length)
Returns the number of lines which are occupied by a given text range. |
int
|
IDocument.
getNumberOfLines
(int offset,
int length)
Returns the number of lines which are occupied by a given text range. |
static
ITypedRegion
|
TextUtilities.
getPartition
(
IDocument document,
String partitioning,
int offset,
boolean preferOpenPartitions)
Returns the partition of the given offset of the given document. |
ITypedRegion
|
AbstractDocument.
getPartition
(int offset)
|
ITypedRegion
|
IDocument.
getPartition
(int offset)
Returns the document partition in which the position is located. |
ITypedRegion
|
AbstractDocument.
getPartition
(
String partitioning,
int offset,
boolean preferOpenPartitions)
|
ITypedRegion
|
IDocumentExtension3.
getPartition
(
String partitioning,
int offset,
boolean preferOpenPartitions)
Returns the document partition of the given partitioning in which the
given offset is located. |
static boolean
|
JFaceTextUtil.
isEmpty
(
ITextViewer viewer,
ITextSelection selection)
Returns true if the text covered by selection does not contain any
characters in the given viewer. |
boolean
|
IRepairableDocumentExtension.
isLineInformationRepairNeeded
(int offset,
int length,
String text)
Tells whether the line information of the document implementing this
interface needs to be repaired. |
boolean
|
AbstractDocument.
isLineInformationRepairNeeded
(int offset,
int length,
String text)
Tells whether the line information of the document implementing this
interface needs to be repaired. |
boolean
|
Document.
isLineInformationRepairNeeded
(int offset,
int length,
String text)
|
static
DocumentEvent
|
TextUtilities.
mergeProcessedDocumentEvents
(
List documentEvents)
Returns a document event which is an accumulation of a list of document events,
null if the list of document events is empty. |
static
DocumentEvent
|
TextUtilities.
mergeUnprocessedDocumentEvents
(
IDocument unprocessedDocument,
List documentEvents)
Returns a document event which is an accumulation of a list of document events,
null if the list of documentEvents is empty. |
UndoEdit
|
RewriteSessionEditProcessor.
performEdits
()
|
void
|
AbstractLineTracker.
replace
(int offset,
int length,
String text)
|
void
|
AbstractDocument.
replace
(int pos,
int length,
String text)
|
void
|
ILineTracker.
replace
(int offset,
int length,
String text)
Informs the line tracker about the specified change in the tracked text. |
void
|
IDocument.
replace
(int offset,
int length,
String text)
Substitutes the given text for the specified document range. |
void
|
AbstractDocument.
replace
(int pos,
int length,
String text,
long modificationStamp)
|
void
|
IDocumentExtension4.
replace
(int offset,
int length,
String text,
long modificationStamp)
Substitutes the given text for the specified document range. |
IRegion
|
FindReplaceDocumentAdapter.
replace
(
String text,
boolean regExReplace)
Substitutes the previous match with the given text. |
int
|
AbstractDocument.
search
(int startPosition,
String findString,
boolean forwardSearch,
boolean caseSensitive,
boolean wholeWord)
Deprecated. as of 3.0 search is provided by
FindReplaceDocumentAdapter
|
int
|
IDocument.
search
(int startOffset,
String findString,
boolean forwardSearch,
boolean caseSensitive,
boolean wholeWord)
Deprecated. as of 3.0 search is provided by
FindReplaceDocumentAdapter
|
int
|
IDocumentInformationMapping.
toClosestImageLine
(int originLine)
Returns the line of the image document whose corresponding line in the original document
is closest to the given line in the original document. |
IRegion
|
IDocumentInformationMappingExtension2.
toClosestImageRegion
(
IRegion originRegion)
Returns the minimal region of the image document that completely
comprises the given region of the original document. |
IRegion
|
IDocumentInformationMappingExtension.
toExactImageRegion
(
IRegion originRegion)
Adheres to
originRegion=toOriginRegion(toExactImageRegion(originRegion)) ,
if toExactImageRegion(originRegion) ! |
IRegion[]
|
IDocumentInformationMappingExtension.
toExactImageRegions
(
IRegion originRegion)
Returns the segments of the image document that exactly correspond to the
given region of the original document. |
IRegion[]
|
IDocumentInformationMappingExtension.
toExactOriginRegions
(
IRegion imageRegion)
Returns the fragments of the original document that exactly correspond to
the given region of the image document. |
int
|
IDocumentInformationMapping.
toImageLine
(int originLine)
Returns the line of the image document that corresponds to the given line of the original document or
-1 if there is no such line. |
int
|
IDocumentInformationMapping.
toImageOffset
(int originOffset)
Returns the offset in the image document that corresponds to the given offset in the original document
or -1 if there is no such offset |
IRegion
|
IDocumentInformationMapping.
toImageRegion
(
IRegion originRegion)
Returns the minimal region of the image document that completely comprises the given region of the
original document or null if there is no such region. |
int
|
IDocumentInformationMapping.
toOriginLine
(int imageLine)
Returns the line of the original document that corresponds to the given line of the image document or
-1 if there is no such line. |
IRegion
|
IDocumentInformationMapping.
toOriginLines
(int imageLine)
Returns the range of lines of the original document that corresponds to the given line of the image document or
null if there are no such lines. |
int
|
IDocumentInformationMapping.
toOriginOffset
(int imageOffset)
Returns the offset in the original document that corresponds to the given offset in the image document
or -1 if there is no such offset |
IRegion
|
IDocumentInformationMapping.
toOriginRegion
(
IRegion imageRegion)
Returns the minimal region of the original document that completely comprises the given region of the
image document or null if there is no such region. |
protected boolean
|
TextViewer.
updateSlaveDocument
(
IDocument slaveDocument,
int modelRangeOffset,
int modelRangeLength)
Updates the given slave document to show the specified range of its master document. |
protected boolean
|
TextViewer.
updateVisibleDocument
(
IDocument visibleDocument,
int visibleRegionOffset,
int visibleRegionLength)
Deprecated. use updateSlaveDocument instead
|