|
|
|
|
Uses of Interface org.eclipse.jface.text.IRegion
Methods in
org.eclipse.jface.text that return
IRegion
|
protected
IRegion
|
TextViewer.
_internalGetVisibleRegion
()
Returns the visible region if it is not equal to the whole document. |
IRegion
|
IDocumentPartitionerExtension.
documentChanged2
(
DocumentEvent event)
The document has been changed. |
protected
IRegion
|
TextViewer.
event2ModelRange
(
VerifyEvent event)
Translates the widget region of the given verify event into
the corresponding region of the viewer's document. |
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
IRegion
|
DefaultTextDoubleClickStrategy.
findExtendedDoubleClickSelection
(
IDocument document,
int offset)
Tries to find a suitable double click selection for the given offset. |
protected
IRegion
|
DefaultTextDoubleClickStrategy.
findWord
(
IDocument document,
int offset)
Tries to find the word at the given offset. |
IRegion
|
DocumentPartitioningChangedEvent.
getChangedRegion
(
String partitioning)
Returns the changed region of the given partitioning or null
if the given partitioning did not change. |
IRegion
|
IDocumentInformationMapping.
getCoverage
()
Returns the minimal region of the original document that completely comprises all of the image document
or null if there is no such region. |
IRegion
|
DocumentPartitioningChangedEvent.
getCoverage
()
Returns the coverage of this event. |
IRegion
|
TextPresentation.
getCoverage
()
Returns the coverage of this presentation as clipped by the presentation's
result window. |
IRegion[]
|
ITextViewerExtension5.
getCoveredModelRanges
(
IRegion modelRange)
Returns the maximal subranges of the given model range thus that there is
no offset inside a subrange for which there is no image offset. |
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. |
IRegion
|
TextPresentation.
getExtent
()
Returns the extent of this presentation clipped by the
presentation's result window. |
protected
IRegion
|
TextViewer.
getExtent
(int start,
int end)
Returns the region covered by the given start and end offset. |
IRegion
|
DefaultTextHover.
getHoverRegion
(
ITextViewer textViewer,
int offset)
|
IRegion
|
ITextHover.
getHoverRegion
(
ITextViewer textViewer,
int offset)
Returns the text region which should serve as the source of information
to compute the hover popup display information. |
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. |
IRegion
|
TextViewer.
getModelCoverage
()
Implements the contract of
ITextViewerExtension5.getModelCoverage() . |
IRegion
|
ITextViewerExtension3.
getModelCoverage
()
Deprecated. Returns the minimal region of the viewer's document that completely comprises everything that is
visible in the viewer's widget or null if there is no such region. |
IRegion
|
ITextViewerExtension5.
getModelCoverage
()
Returns the minimal region of the viewer's input document that completely
comprises everything that is visible in the viewer's widget or
null if there is no such region. |
IRegion[]
|
IBlockTextSelection.
getRegions
()
Returns a non-empty array containing the selected text range for each line covered by the
selection. |
IRegion[]
|
BlockTextSelection.
getRegions
()
|
IRegion
|
IFindReplaceTargetExtension.
getScope
()
Returns the find scope of the target, null for global scope. |
IRegion
|
TextViewer.
getVisibleRegion
()
|
IRegion
|
ITextViewer.
getVisibleRegion
()
Returns the current visible region of this viewer's document. |
protected
IRegion
|
TextViewer.
modelRange2ClosestWidgetRange
(
IRegion modelRange)
Similar to
TextViewer.modelRange2WidgetRange(IRegion) , but more forgiving:
if modelRange describes a region entirely hidden in the
image, then this method returns the zero-length region at the offset of
the folded region. |
IRegion
|
TextViewer.
modelRange2WidgetRange
(
IRegion modelRange)
Implements the contract of
ITextViewerExtension5.modelRange2WidgetRange(IRegion) . |
IRegion
|
ITextViewerExtension3.
modelRange2WidgetRange
(
IRegion modelRange)
Deprecated. Returns the minimal region of the viewer's widget that completely comprises the given region of the
viewer's document or null if there is no such region. |
IRegion
|
ITextViewerExtension5.
modelRange2WidgetRange
(
IRegion modelRange)
Returns the minimal region of the viewer's widget that completely
comprises the given region of the viewer's input document or
null if there is no such region. |
protected
IRegion
|
TextViewer.
modelRange2WidgetRange
(
Position modelPosition)
Same as
TextViewer.modelRange2WidgetRange(IRegion) just for a
Position . |
IRegion
|
FindReplaceDocumentAdapter.
replace
(
String text,
boolean regExReplace)
Substitutes the previous match with the given text. |
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. |
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. |
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. |
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. |
IRegion
|
TextViewer.
widgetRange2ModelRange
(
IRegion widgetRange)
Implements the contract of
ITextViewerExtension5.widgetRange2ModelRange(IRegion) . |
IRegion
|
ITextViewerExtension3.
widgetRange2ModelRange
(
IRegion widgetRange)
Deprecated. Returns the minimal region of the viewer's document that completely comprises the given widget region
or null if there is no such region. |
IRegion
|
ITextViewerExtension5.
widgetRange2ModelRange
(
IRegion widgetRange)
Returns the minimal region of the viewer's input document that completely
comprises the given widget region or null if there is no
such region. |
Methods in
org.eclipse.jface.text with parameters of type
IRegion
|
static
Rectangle
|
JFaceTextUtil.
computeArea
(
IRegion region,
ITextViewer textViewer)
Determines the graphical area covered by the given text region in
the given viewer. |
void
|
IDocumentPartitioningListenerExtension.
documentPartitioningChanged
(
IDocument document,
IRegion region)
The partitioning of the given document changed in the given region. |
protected void
|
AbstractDocument.
doFireDocumentChanged
(
DocumentEvent event,
boolean firePartitionChange,
IRegion partitionChange)
Deprecated. as of 3.0. Use doFireDocumentChanged2(DocumentEvent) instead; this method will be removed.
|
boolean
|
ITextViewerExtension5.
exposeModelRange
(
IRegion modelRange)
Exposes the given model range. |
protected void
|
AbstractDocument.
fireDocumentPartitioningChanged
(
IRegion region)
Deprecated. as of 3.0. Use
fireDocumentPartitioningChanged(DocumentPartitioningChangedEvent)
instead.
|
IRegion[]
|
ITextViewerExtension5.
getCoveredModelRanges
(
IRegion modelRange)
Returns the maximal subranges of the given model range thus that there is
no offset inside a subrange for which there is no image offset. |
IRegion[]
|
IDocumentInformationMappingExtension.
getExactCoverage
(
IRegion originRegion)
Returns the maximal sub-regions of the given origin region which are
completely covered. |
String
|
DefaultTextHover.
getHoverInfo
(
ITextViewer textViewer,
IRegion hoverRegion)
Deprecated. As of 3.4, replaced by
ITextHoverExtension2.getHoverInfo2(ITextViewer, IRegion)
|
String
|
ITextHover.
getHoverInfo
(
ITextViewer textViewer,
IRegion hoverRegion)
Deprecated. As of 3.4, replaced by
ITextHoverExtension2.getHoverInfo2(ITextViewer, IRegion)
|
Object
|
ITextHoverExtension2.
getHoverInfo2
(
ITextViewer textViewer,
IRegion hoverRegion)
Returns the information which should be presented when a hover popup is shown
for the specified hover region. |
boolean
|
IEditingSupport.
isOriginator
(
DocumentEvent event,
IRegion subjectRegion)
Returns true if the receiver is the originator of a
DocumentEvent and if that event is related
to subjectRegion . |
protected
IRegion
|
TextViewer.
modelRange2ClosestWidgetRange
(
IRegion modelRange)
Similar to
TextViewer.modelRange2WidgetRange(IRegion) , but more forgiving:
if modelRange describes a region entirely hidden in the
image, then this method returns the zero-length region at the offset of
the folded region. |
IRegion
|
TextViewer.
modelRange2WidgetRange
(
IRegion modelRange)
Implements the contract of
ITextViewerExtension5.modelRange2WidgetRange(IRegion) . |
IRegion
|
ITextViewerExtension3.
modelRange2WidgetRange
(
IRegion modelRange)
Deprecated. Returns the minimal region of the viewer's widget that completely comprises the given region of the
viewer's document or null if there is no such region. |
IRegion
|
ITextViewerExtension5.
modelRange2WidgetRange
(
IRegion modelRange)
Returns the minimal region of the viewer's widget that completely
comprises the given region of the viewer's input document or
null if there is no such region. |
static boolean
|
TextUtilities.
overlaps
(
IRegion left,
IRegion right)
Returns true if the two regions overlap. |
void
|
TextPresentation.
setResultWindow
(
IRegion resultWindow)
Sets the result window for this presentation. |
void
|
IFindReplaceTargetExtension.
setScope
(
IRegion scope)
Sets the find scope of the target to operate on. |
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. |
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. |
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. |
IRegion
|
TextViewer.
widgetRange2ModelRange
(
IRegion widgetRange)
Implements the contract of
ITextViewerExtension5.widgetRange2ModelRange(IRegion) . |
IRegion
|
ITextViewerExtension3.
widgetRange2ModelRange
(
IRegion widgetRange)
Deprecated. Returns the minimal region of the viewer's document that completely comprises the given widget region
or null if there is no such region. |
IRegion
|
ITextViewerExtension5.
widgetRange2ModelRange
(
IRegion widgetRange)
Returns the minimal region of the viewer's input document that completely
comprises the given widget region or null if there is no
such region. |
Methods in
org.eclipse.ltk.core.refactoring with parameters of type
IRegion
|
String
|
TextChange.
getCurrentContent
(
IRegion region,
boolean expandRegionToFullLine,
int surroundingLines,
IProgressMonitor pm)
Returns the current content of the text edit change clipped to a specific
region. |
abstract
String
|
TextEditBasedChange.
getCurrentContent
(
IRegion region,
boolean expandRegionToFullLine,
int surroundingLines,
IProgressMonitor pm)
Returns the current content of the text edit change clipped to a specific
region. |
String
|
MultiStateTextFileChange.
getCurrentContent
(
IRegion region,
boolean expand,
int surround,
IProgressMonitor monitor)
|
String
|
TextChange.
getPreviewContent
(
TextEditBasedChangeGroup[] changeGroups,
IRegion region,
boolean expandRegionToFullLine,
int surroundingLines,
IProgressMonitor pm)
Returns a preview of the text change clipped to a specific region. |
abstract
String
|
TextEditBasedChange.
getPreviewContent
(
TextEditBasedChangeGroup[] changeGroups,
IRegion region,
boolean expandRegionToFullLine,
int surroundingLines,
IProgressMonitor pm)
Returns a preview of the text edit change clipped to a specific region. |
String
|
MultiStateTextFileChange.
getPreviewContent
(
TextEditBasedChangeGroup[] groups,
IRegion region,
boolean expand,
int surround,
IProgressMonitor monitor)
|
String
|
TextChange.
getPreviewContent
(
TextEditChangeGroup[] changeGroups,
IRegion region,
boolean expandRegionToFullLine,
int surroundingLines,
IProgressMonitor pm)
Returns a preview of the text change clipped to a specific region. |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.
|
|
|