Package | Description |
---|---|
org.eclipse.compare.contentmergeviewer |
Support for compare and merge viewers which show the
content side-by-side.
|
org.eclipse.jface.contentassist |
Provides a content assist add-on for implementors of IContentAssistSubjectControl.
|
org.eclipse.jface.text |
Provides a framework for creating and manipulating text documents.
|
org.eclipse.jface.text.contentassist |
Provides a content assist add-on for an ITextViewer.
|
org.eclipse.jface.text.hyperlink |
Provides support for detecting and displaying hyperlinks in ISourceViewers.
|
org.eclipse.jface.text.information |
Provides an information provider add-on for an ITextViewer.
|
org.eclipse.jface.text.link |
Application programming interfaces for interaction
with the Eclipse text editor's linked position support.
|
org.eclipse.jface.text.presentation |
Provides a presentation reconciler add-on for an ITextViewer.
|
org.eclipse.jface.text.reconciler |
Provides a reconciler add-on for an ITextViewer.
|
org.eclipse.jface.text.source |
Provides a framework for connecting document regions
with annotations and for displaying those.
|
org.eclipse.jface.text.source.projection |
This package provides the UI part for projection documents of which the most important part is the projection viewer.
|
org.eclipse.jface.text.templates |
Application programming interfaces for interaction
with the Eclipse text template support.
|
org.eclipse.ui.console |
Application programming interfaces for interaction
with the Eclipse console.
|
org.eclipse.ui.console.actions |
Application programming interfaces for Eclipse console specific actions. |
org.eclipse.ui.texteditor |
Provides a framework for text editors obeying to the
desktop rules.
|
org.eclipse.ui.texteditor.link |
Adds a LinkedModeUI subclass that is aware of workbench editors.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
TextMergeViewer.isEditorBacked(ITextViewer textViewer)
Tells whether the given text viewer is backed by an editor.
|
Modifier and Type | Method and Description |
---|---|
void |
SubjectControlContextInformationValidator.install(IContextInformation contextInformation,
ITextViewer viewer,
int offset)
Deprecated.
|
Modifier and Type | Class and Description |
---|---|
class |
TextViewer
SWT based implementation of
ITextViewer and its extension interfaces. |
Modifier and Type | Method and Description |
---|---|
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 |
DefaultTextDoubleClickStrategy.doubleClicked(ITextViewer text) |
void |
ITextDoubleClickStrategy.doubleClicked(ITextViewer viewer)
The mouse has been double clicked on the given text viewer.
|
static IRegion[] |
JFaceTextUtil.getCoveredRanges(ITextViewer viewer,
ITextSelection selection)
Returns the text regions covered by the given selection in the given viewer.
|
String |
ITextHover.getHoverInfo(ITextViewer textViewer,
IRegion hoverRegion)
Deprecated.
As of 3.4, replaced by
ITextHoverExtension2.getHoverInfo2(ITextViewer, IRegion) |
String |
DefaultTextHover.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 |
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 |
DefaultTextHover.getHoverRegion(ITextViewer textViewer,
int offset) |
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.
|
Constructor and Description |
---|
CursorLinePainter(ITextViewer textViewer)
Creates a new painter for the given source viewer.
|
MarginPainter(ITextViewer textViewer)
Creates a new painter for the given text viewer.
|
PaintManager(ITextViewer textViewer)
Creates a new paint manager for the given text viewer.
|
WhitespaceCharacterPainter(ITextViewer textViewer)
Creates a new painter for the given text viewer.
|
WhitespaceCharacterPainter(ITextViewer viewer,
boolean showLeadingSpaces,
boolean showEnclosedSpaces,
boolean showTrailingSpaces,
boolean showLeadingIdeographicSpaces,
boolean showEnclosedIdeographicSpaces,
boolean showTrailingIdeographicSpace,
boolean showLeadingTabs,
boolean showEnclosedTabs,
boolean showTrailingTabs,
boolean showCarriageReturn,
boolean showLineFeed,
int alpha)
Creates a new painter for the given text viewer and the painter options.
|
Modifier and Type | Method and Description |
---|---|
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 |
IContextInformationValidator.install(IContextInformation info,
ITextViewer viewer,
int offset)
Installs this validator for the given context information.
|
void |
IContextInformationPresenter.install(IContextInformation info,
ITextViewer viewer,
int offset)
Installs this presenter for the given context information.
|
void |
ContextInformationValidator.install(IContextInformation contextInformation,
ITextViewer viewer,
int offset) |
void |
ContentAssistant.install(ITextViewer textViewer) |
void |
IContentAssistant.install(ITextViewer textViewer)
Installs content assist support on the given text viewer.
|
void |
ICompletionProposalExtension2.selected(ITextViewer viewer,
boolean smartToggle)
Called when the proposal is selected.
|
void |
ICompletionProposalExtension2.unselected(ITextViewer viewer)
Called when the proposal is unselected.
|
Modifier and Type | Method and Description |
---|---|
IHyperlink[] |
URLHyperlinkDetector.detectHyperlinks(ITextViewer textViewer,
IRegion region,
boolean canShowMultipleHyperlinks) |
IHyperlink[] |
IHyperlinkDetector.detectHyperlinks(ITextViewer textViewer,
IRegion region,
boolean canShowMultipleHyperlinks)
Tries to detect hyperlinks for the given region in
the given text viewer and returns them.
|
void |
IHyperlinkPresenter.install(ITextViewer textViewer)
Installs this hyperlink presenter on the given text viewer.
|
void |
DefaultHyperlinkPresenter.install(ITextViewer textViewer) |
void |
MultipleHyperlinkPresenter.install(ITextViewer viewer) |
void |
HyperlinkManager.install(ITextViewer textViewer,
IHyperlinkPresenter hyperlinkPresenter,
IHyperlinkDetector[] hyperlinkDetectors,
int eventStateMask)
Installs this hyperlink manager with the given arguments.
|
Constructor and Description |
---|
URLHyperlinkDetector(ITextViewer textViewer)
Deprecated.
As of 3.2, replaced by
URLHyperlinkDetector |
Modifier and Type | Method and Description |
---|---|
String |
IInformationProvider.getInformation(ITextViewer textViewer,
IRegion subject)
Deprecated.
As of 2.1, replaced by
IInformationProviderExtension.getInformation2(ITextViewer, IRegion) |
Object |
IInformationProviderExtension.getInformation2(ITextViewer textViewer,
IRegion subject)
Returns the element for the given subject or
null if
no element is available. |
IRegion |
IInformationProvider.getSubject(ITextViewer textViewer,
int offset)
Returns the region of the text viewer's document close to the given
offset that contains a subject about which information can be provided.
|
void |
IInformationPresenter.install(ITextViewer textViewer)
Installs the information presenter on the given text viewer.
|
void |
InformationPresenter.install(ITextViewer textViewer) |
Modifier and Type | Method and Description |
---|---|
abstract ITextViewer |
LinkedModeUI.LinkedModeUITarget.getViewer()
Returns the viewer represented by this target, never
null . |
Modifier and Type | Method and Description |
---|---|
void |
LinkedModeUI.setExitPosition(ITextViewer viewer,
int offset,
int length,
int sequence)
Sets the exit position to move the caret to when linked mode is exited.
|
Constructor and Description |
---|
LinkedModeUI(LinkedModeModel model,
ITextViewer viewer)
Convenience constructor for just one viewer.
|
LinkedModeUI(LinkedModeModel model,
ITextViewer[] viewers)
Convenience constructor for multiple viewers.
|
Modifier and Type | Method and Description |
---|---|
void |
IPresentationReconciler.install(ITextViewer viewer)
Installs this presentation reconciler on the given text viewer.
|
void |
PresentationReconciler.install(ITextViewer viewer) |
Modifier and Type | Method and Description |
---|---|
protected ITextViewer |
AbstractReconciler.getTextViewer()
Returns the text viewer this reconciler is installed on.
|
Modifier and Type | Method and Description |
---|---|
void |
IReconciler.install(ITextViewer textViewer)
Installs the reconciler on the given text viewer.
|
void |
AbstractReconciler.install(ITextViewer textViewer) |
Modifier and Type | Interface and Description |
---|---|
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.
|
Modifier and Type | Class and Description |
---|---|
class |
SourceViewer
SWT based implementation of
ISourceViewer and its extension
interfaces. |
Modifier and Type | Method and Description |
---|---|
protected ITextViewer |
AnnotationRulerColumn.getCachedTextViewer()
Returns the cached text viewer.
|
ITextViewer |
CompositeRuler.getTextViewer()
Returns this ruler's text viewer.
|
Modifier and Type | Method and Description |
---|---|
Control |
VerticalRuler.createControl(Composite parent,
ITextViewer textViewer) |
Control |
OverviewRuler.createControl(Composite parent,
ITextViewer textViewer) |
Control |
CompositeRuler.createControl(Composite parent,
ITextViewer textViewer) |
Control |
IVerticalRuler.createControl(Composite parent,
ITextViewer textViewer)
Creates the ruler's SWT control.
|
protected static int |
VerticalRuler.widgetLine2ModelLine(ITextViewer viewer,
int widgetLine)
Returns the line of the viewer's document that corresponds to the given widget line.
|
protected static int |
CompositeRuler.widgetLine2ModelLine(ITextViewer viewer,
int widgetLine)
Returns the line in the given viewer's document that correspond to the given
line of the viewer's widget.
|
Modifier and Type | Class and Description |
---|---|
class |
ProjectionViewer
A projection source viewer is a source viewer which supports multiple visible
regions which can dynamically be changed.
|
Modifier and Type | Method and Description |
---|---|
void |
TemplateProposal.apply(ITextViewer viewer,
char trigger,
int stateMask,
int offset)
Inserts the template offered by this proposal into the viewer's document
and sets up a
LinkedModeUI on the viewer to edit any of
the template's unresolved variables. |
ICompletionProposal[] |
TemplateCompletionProcessor.computeCompletionProposals(ITextViewer viewer,
int offset) |
IContextInformation[] |
TemplateCompletionProcessor.computeContextInformation(ITextViewer viewer,
int documentOffset) |
protected TemplateContext |
TemplateCompletionProcessor.createContext(ITextViewer viewer,
IRegion region)
Creates a concrete template context for the given region in the document.
|
protected String |
TemplateCompletionProcessor.extractPrefix(ITextViewer viewer,
int offset)
Heuristically extracts the prefix used for determining template relevance
from the viewer's document.
|
protected abstract TemplateContextType |
TemplateCompletionProcessor.getContextType(ITextViewer viewer,
IRegion region)
Returns the context type that can handle template insertion at the given region
in the viewer's document.
|
void |
TemplateProposal.selected(ITextViewer viewer,
boolean smartToggle) |
void |
TemplateProposal.unselected(ITextViewer viewer) |
Modifier and Type | Class and Description |
---|---|
class |
TextConsoleViewer
Default viewer used to display a
TextConsole . |
Modifier and Type | Field and Description |
---|---|
protected ITextViewer |
TextViewerGotoLineAction.fTextViewer |
Constructor and Description |
---|
ClearOutputAction(ITextViewer viewer)
Constructs an action to clear the document associated with a text viewer.
|
TextViewerAction(ITextViewer viewer,
int operationCode)
Constructs a new action in the given text viewer with
the specified operation code.
|
TextViewerGotoLineAction(ITextViewer viewer)
Constructs a goto line action for the viewer using the provided resource bundle
|
Modifier and Type | Method and Description |
---|---|
ICompletionProposal[] |
HippieProposalProcessor.computeCompletionProposals(ITextViewer viewer,
int offset) |
IContextInformation[] |
HippieProposalProcessor.computeContextInformation(ITextViewer viewer,
int offset) |
protected static boolean |
MarkRegionTarget.isVisible(ITextViewer viewer,
int offset)
Tells whether the given offset is visible in the given text viewer.
|
Constructor and Description |
---|
MarkRegionTarget(ITextViewer viewer,
IStatusLineManager manager)
Creates a MarkRegionTaret.
|
MoveLinesAction(ResourceBundle bundle,
String prefix,
ITextEditor editor,
ITextViewer textViewer,
boolean upwards,
boolean copy)
Creates and initializes the action for the given text editor.
|
TextViewerDeleteLineTarget(ITextViewer viewer)
Creates a new target.
|
Constructor and Description |
---|
EditorLinkedModeUI(LinkedModeModel model,
ITextViewer viewer) |
EditorLinkedModeUI(LinkedModeModel model,
ITextViewer[] viewers) |
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.