|
 |
|
|
Uses of Interface org.eclipse.jface.text.ITextViewer
Methods in
org.eclipse.jface.text with parameters of type
ITextViewer
|
static
Rectangle
|
JFaceTextUtil.
computeArea
(
IRegion region,
ITextViewer textViewer)
Determines the graphical area covered by the given text region in
the given viewer. |
void
|
IUndoManager.
connect
(
ITextViewer viewer)
Connects this undo manager to the given text viewer. |
void
|
TextViewerUndoManager.
connect
(
ITextViewer textViewer)
|
void
|
DefaultUndoManager.
connect
(
ITextViewer textViewer)
Deprecated. |
void
|
ITextDoubleClickStrategy.
doubleClicked
(
ITextViewer viewer)
The mouse has been double clicked on the given text viewer. |
void
|
DefaultTextDoubleClickStrategy.
doubleClicked
(
ITextViewer text)
|
static
IRegion[]
|
JFaceTextUtil.
getCoveredRanges
(
ITextViewer viewer,
ITextSelection selection)
Returns the text regions covered by the given selection in the given viewer. |
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. |
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. |
static int
|
JFaceTextUtil.
getOffsetForCursorLocation
(
ITextViewer viewer)
Returns the offset in the given viewer that corresponds to the current cursor location. |
static int
|
JFaceTextUtil.
getPartialBottomIndex
(
ITextViewer viewer)
Returns the last, possibly partially, visible line in the view port. |
static int
|
JFaceTextUtil.
getPartialTopIndex
(
ITextViewer viewer)
Returns the line index of the first visible model line in the viewer. |
static
ILineRange
|
JFaceTextUtil.
getVisibleModelLines
(
ITextViewer viewer)
Returns the range of lines that is visible in the viewer, including any partially visible
lines. |
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. |
static int
|
JFaceTextUtil.
modelLineToWidgetLine
(
ITextViewer viewer,
int modelLine)
Converts a model (i.e. |
static int
|
JFaceTextUtil.
widgetLine2ModelLine
(
ITextViewer viewer,
int widgetLine)
Converts a widget line into a model (i.e. |
Methods in
org.eclipse.jface.text.contentassist with parameters of type
ITextViewer
|
void
|
ICompletionProposalExtension2.
apply
(
ITextViewer viewer,
char trigger,
int stateMask,
int offset)
Applies the proposed completion to the given document. |
ICompletionProposal[]
|
IContentAssistProcessor.
computeCompletionProposals
(
ITextViewer viewer,
int offset)
Returns a list of completion proposals based on the
specified location within the document that corresponds
to the current cursor position within the text viewer. |
IContextInformation[]
|
IContentAssistProcessor.
computeContextInformation
(
ITextViewer viewer,
int offset)
Returns information about possible contexts based on the
specified location within the document that corresponds
to the current cursor position within the text viewer. |
void
|
IContextInformationPresenter.
install
(
IContextInformation info,
ITextViewer viewer,
int offset)
Installs this presenter for the given context information. |
void
|
IContextInformationValidator.
install
(
IContextInformation info,
ITextViewer viewer,
int offset)
Installs this validator for the given context information. |
void
|
ContextInformationValidator.
install
(
IContextInformation contextInformation,
ITextViewer viewer,
int offset)
|
void
|
IContentAssistant.
install
(
ITextViewer textViewer)
Installs content assist support on the given text viewer. |
void
|
ContentAssistant.
install
(
ITextViewer textViewer)
|
void
|
ICompletionProposalExtension2.
selected
(
ITextViewer viewer,
boolean smartToggle)
Called when the proposal is selected. |
void
|
ICompletionProposalExtension2.
unselected
(
ITextViewer viewer)
Called when the proposal is unselected. |
Subinterfaces of
ITextViewer in
org.eclipse.jface.text.source
|
interface
|
ISourceViewer
In addition to the text viewer functionality a source viewer supports:
visual annotations based on an annotation model
visual range indication
management of text viewer add-ons
explicit configuration
It is assumed that range indication and visual annotations are shown inside
the same presentation area. |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.
|
|
|