Uses of Interface
org.eclipse.jface.text.source.ISourceViewer
Package
Description
Support for compare and merge viewers which show the
content side-by-side.
Provides a framework for creating and manipulating text documents.
This package provides the quick assist assistant add-on for an
ISourceViewer
.Provides a framework for connecting document regions
with annotations and for displaying those.
This package provides the UI part for projection documents of which the most important part is the projection viewer.
Application programming interfaces for interaction
with the Eclipse console.
Provides a standard text editor and concrete document providers based
IFileBuffer
and others directly handling IFile
and
IStorage
as editor input.Provides a framework for text editors obeying to the
desktop rules.
Partial infrastructure for spell checking in text editors.
Application programming interfaces for interaction
with the Eclipse text editor template support.
-
Uses of ISourceViewer in org.eclipse.compare.contentmergeviewer
Modifier and TypeMethodDescriptionprotected IEditorInput
TextMergeViewer.getEditorInput
(ISourceViewer sourceViewer) Returns an editor input for the given source viewer.protected void
TextMergeViewer.setEditable
(ISourceViewer sourceViewer, boolean state) Sets the editable state of the given source viewer. -
Uses of ISourceViewer in org.eclipse.jface.text
ModifierConstructorDescriptionDefaultTextHover
(ISourceViewer sourceViewer) Creates a new annotation hover. -
Uses of ISourceViewer in org.eclipse.jface.text.quickassist
Modifier and TypeMethodDescriptionIQuickAssistInvocationContext.getSourceViewer()
Returns the viewer for this context.Modifier and TypeMethodDescriptionvoid
IQuickAssistAssistant.install
(ISourceViewer sourceViewer) Installs quick assist support on the given source viewer.void
QuickAssistAssistant.install
(ISourceViewer sourceViewer) -
Uses of ISourceViewer in org.eclipse.jface.text.source
Modifier and TypeClassDescriptionclass
SWT based implementation ofISourceViewer
and its extension interfaces.Modifier and TypeMethodDescriptionprotected ISourceViewer
AnnotationBarHoverManager.getSourceViewer()
Returns the source viewer for this hover manager.TextInvocationContext.getSourceViewer()
Modifier and TypeMethodDescriptionprotected Point
LineChangeHover.computeLineRange
(ISourceViewer viewer, int line, int min, int max) Computes the block of lines which form a contiguous block of changes coveringline
.protected IAnnotationModel
AnnotationPainter.findAnnotationModel
(ISourceViewer sourceViewer) Retrieves the annotation model from the given source viewer.SourceViewerConfiguration.getAnnotationHover
(ISourceViewer sourceViewer) Returns the annotation hover which will provide the information to be shown in a hover popup window when requested for the given source viewer.SourceViewerConfiguration.getAutoEditStrategies
(ISourceViewer sourceViewer, String contentType) Returns the auto edit strategies ready to be used with the given source viewer when manipulating text of the given content type.SourceViewerConfiguration.getAutoIndentStrategy
(ISourceViewer sourceViewer, String contentType) Deprecated.SourceViewerConfiguration.getCodeMiningProviders
(ISourceViewer sourceViewer) Returns the code mining providers which be used to draw code minings in the given source viewer.String[]
SourceViewerConfiguration.getConfiguredContentTypes
(ISourceViewer sourceViewer) Returns all configured content types for the given source viewer.SourceViewerConfiguration.getConfiguredDocumentPartitioning
(ISourceViewer sourceViewer) Returns the configured partitioning for the given source viewer.int[]
SourceViewerConfiguration.getConfiguredTextHoverStateMasks
(ISourceViewer sourceViewer, String contentType) Returns the SWT event state masks for which text hover are configured for the given content type.SourceViewerConfiguration.getContentAssistant
(ISourceViewer sourceViewer) Returns the content assistant ready to be used with the given source viewer.SourceViewerConfiguration.getContentFormatter
(ISourceViewer sourceViewer) Returns the content formatter ready to be used with the given source viewer.String[]
SourceViewerConfiguration.getDefaultPrefixes
(ISourceViewer sourceViewer, String contentType) Returns the default prefixes to be used by the line-prefix operation in the given source viewer for text of the given content type.SourceViewerConfiguration.getDoubleClickStrategy
(ISourceViewer sourceViewer, String contentType) Returns the double-click strategy ready to be used in this viewer when double clicking onto text of the given content type.DefaultAnnotationHover.getHoverInfo
(ISourceViewer sourceViewer, int lineNumber) IAnnotationHover.getHoverInfo
(ISourceViewer sourceViewer, int lineNumber) Returns the text which should be presented in the a hover popup window.IAnnotationHoverExtension.getHoverInfo
(ISourceViewer sourceViewer, ILineRange lineRange, int visibleNumberOfLines) Returns the object which should be presented in the a hover popup window.LineChangeHover.getHoverInfo
(ISourceViewer sourceViewer, int lineNumber) LineChangeHover.getHoverInfo
(ISourceViewer sourceViewer, ILineRange lineRange, int visibleLines) IAnnotationHoverExtension.getHoverLineRange
(ISourceViewer viewer, int lineNumber) Returns the range of lines that include the given line number for which the same hover information is valid.LineChangeHover.getHoverLineRange
(ISourceViewer viewer, int lineNumber) SourceViewerConfiguration.getHyperlinkDetectors
(ISourceViewer sourceViewer) Returns the hyperlink detectors which be used to detect hyperlinks in the given source viewer.SourceViewerConfiguration.getHyperlinkPresenter
(ISourceViewer sourceViewer) Returns the hyperlink presenter for the given source viewer.int
SourceViewerConfiguration.getHyperlinkStateMask
(ISourceViewer sourceViewer) Returns the SWT event state mask which in combination with the left mouse button activates hyperlinking.String[]
SourceViewerConfiguration.getIndentPrefixes
(ISourceViewer sourceViewer, String contentType) Returns the prefixes to be used by the line-shift operation.SourceViewerConfiguration.getInformationControlCreator
(ISourceViewer sourceViewer) Returns the information control creator.SourceViewerConfiguration.getInformationPresenter
(ISourceViewer sourceViewer) Returns the information presenter which will determine and shown information requested for the current cursor position.int
SourceViewerConfiguration.getLineSpacing
(ISourceViewer sourceViewer) Returns the line space for the given source viewer.SourceViewerConfiguration.getOverviewRulerAnnotationHover
(ISourceViewer sourceViewer) Returns the annotation hover which will provide the information to be shown in a hover popup window when requested for the overview ruler of the given source viewer.This implementation always returns the general annotation hover returned bygetAnnotationHover
.SourceViewerConfiguration.getPresentationReconciler
(ISourceViewer sourceViewer) Returns the presentation reconciler ready to be used with the given source viewer.SourceViewerConfiguration.getQuickAssistAssistant
(ISourceViewer sourceViewer) Returns the quick assist assistant ready to be used with the given source viewer.SourceViewerConfiguration.getReconciler
(ISourceViewer sourceViewer) Returns the reconciler ready to be used with the given source viewer.int
SourceViewerConfiguration.getTabWidth
(ISourceViewer sourceViewer) Returns the visual width of the tab character.SourceViewerConfiguration.getTextHover
(ISourceViewer sourceViewer, String contentType) Returns the text hover which will provide the information to be shown in a text hover popup window when requested for the given source viewer and the given content type.SourceViewerConfiguration.getTextHover
(ISourceViewer sourceViewer, String contentType, int stateMask) Returns the text hover which will provide the information to be shown in a text hover popup window when requested for the given source viewer and the given content type.SourceViewerConfiguration.getUndoManager
(ISourceViewer sourceViewer) Returns the undo manager for the given source viewer.ModifierConstructorDescriptionAnnotationBarHoverManager
(ISourceViewer sourceViewer, IVerticalRuler ruler, IAnnotationHover annotationHover, IInformationControlCreator creator) Deprecated.AnnotationBarHoverManager
(IVerticalRulerInfo rulerInfo, ISourceViewer sourceViewer, IAnnotationHover annotationHover, IInformationControlCreator creator) Creates an annotation hover manager with the given parameters.AnnotationPainter
(ISourceViewer sourceViewer, IAnnotationAccess access) Creates a new annotation painter for the given source viewer and with the given annotation access.MatchingCharacterPainter
(ISourceViewer sourceViewer, ICharacterPairMatcher matcher) Creates a new MatchingCharacterPainter for the given source viewer using the given character pair matcher.TextInvocationContext
(ISourceViewer sourceViewer, int offset, int length) -
Uses of ISourceViewer in org.eclipse.jface.text.source.inlined
Modifier and TypeMethodDescriptionAbstractInlinedAnnotation.getViewer()
Returns theISourceViewer
where the annotation must be drawn.Modifier and TypeMethodDescriptionvoid
InlinedAnnotationSupport.install
(ISourceViewer viewer, AnnotationPainter painter) Install the inlined annotation support for the given viewer.ModifierConstructorDescriptionprotected
AbstractInlinedAnnotation
(Position position, ISourceViewer viewer) Inlined annotation constructor.LineContentAnnotation
(Position position, ISourceViewer viewer) Line content annotation constructor.LineHeaderAnnotation
(Position position, ISourceViewer viewer) Line header annotation constructor. -
Uses of ISourceViewer in org.eclipse.jface.text.source.projection
Modifier and TypeClassDescriptionclass
A projection source viewer is a source viewer which supports multiple visible regions which can dynamically be changed.Modifier and TypeMethodDescription<T> T
ProjectionSupport.getAdapter
(ISourceViewer viewer, Class<T> required) Implements the contract ofIAdaptable.getAdapter(java.lang.Class)
by forwarding the adapter requests to the given viewer. -
Uses of ISourceViewer in org.eclipse.ui.console
Modifier and TypeClassDescriptionclass
Default viewer used to display aTextConsole
. -
Uses of ISourceViewer in org.eclipse.ui.editors.text
Modifier and TypeMethodDescriptionTextSourceViewerConfiguration.getAnnotationHover
(ISourceViewer sourceViewer) int[]
TextSourceViewerConfiguration.getConfiguredTextHoverStateMasks
(ISourceViewer sourceViewer, String contentType) TextSourceViewerConfiguration.getHyperlinkDetectors
(ISourceViewer sourceViewer) protected Map<String,
IAdaptable> TextSourceViewerConfiguration.getHyperlinkDetectorTargets
(ISourceViewer sourceViewer) Returns the hyperlink detector targets supported by the given source viewer.TextSourceViewerConfiguration.getHyperlinkPresenter
(ISourceViewer sourceViewer) int
TextSourceViewerConfiguration.getHyperlinkStateMask
(ISourceViewer sourceViewer) String[]
TextSourceViewerConfiguration.getIndentPrefixes
(ISourceViewer sourceViewer, String contentType) int
TextSourceViewerConfiguration.getLineSpacing
(ISourceViewer sourceViewer) Returns the lineSpacing for the given source viewer.TextSourceViewerConfiguration.getOverviewRulerAnnotationHover
(ISourceViewer sourceViewer) TextSourceViewerConfiguration.getQuickAssistAssistant
(ISourceViewer sourceViewer) TextSourceViewerConfiguration.getReconciler
(ISourceViewer sourceViewer) Returns the reconciler ready to be used with the given source viewer.protected final IHyperlinkDetector[]
TextSourceViewerConfiguration.getRegisteredHyperlinkDetectors
(ISourceViewer sourceViewer) Returns the registered hyperlink detectors which are used to detect hyperlinks in the given source viewer.int
TextSourceViewerConfiguration.getTabWidth
(ISourceViewer sourceViewer) TextSourceViewerConfiguration.getTextHover
(ISourceViewer sourceViewer, String contentType) TextSourceViewerConfiguration.getUndoManager
(ISourceViewer sourceViewer) -
Uses of ISourceViewer in org.eclipse.ui.texteditor
Modifier and TypeMethodDescriptionprotected ISourceViewer
AbstractDecoratedTextEditor.createSourceViewer
(Composite parent, IVerticalRuler ruler, int styles) protected ISourceViewer
AbstractTextEditor.createSourceViewer
(Composite parent, IVerticalRuler ruler, int styles) Creates the source viewer to be used by this editor.protected final ISourceViewer
AbstractTextEditor.getSourceViewer()
Returns the editor's source viewer.Modifier and TypeMethodDescriptionprotected static final IRegion
AbstractTextEditor.getCoverage
(ISourceViewer viewer) Returns the minimal region of the given source viewer's document that completely comprises everything that is visible in the viewer's widget.protected SourceViewerDecorationSupport
AbstractDecoratedTextEditor.getSourceViewerDecorationSupport
(ISourceViewer viewer) Returns the source viewer decoration support.protected void
AbstractTextEditor.initializeDragAndDrop
(ISourceViewer viewer) Initializes the drag and drop support for the given viewer based on provided editor adapter for drop target listeners.protected void
AbstractTextEditor.initializeViewerColors
(ISourceViewer viewer) Initializes the fore- and background colors of the given viewer for both normal and selected text.protected void
AbstractTextEditor.installTextDragAndDrop
(ISourceViewer viewer) Installs text drag and drop on the given source viewer.protected static final boolean
AbstractTextEditor.isVisible
(ISourceViewer viewer, int offset, int length) Tells whether the given region is visible in the given source viewer.protected static final int
AbstractTextEditor.modelOffset2WidgetOffset
(ISourceViewer viewer, int modelOffset) Returns the offset of the given source viewer's text widget that corresponds to the given model offset or-1
if there is no such offset.protected void
AbstractTextEditor.uninstallTextDragAndDrop
(ISourceViewer viewer) Uninstalls text drag and drop from the given source viewer.protected static final int
AbstractTextEditor.widgetOffset2ModelOffset
(ISourceViewer viewer, int widgetOffset) Returns the offset of the given source viewer's document that corresponds to the given widget offset or-1
if there is no such offset.ModifierConstructorDescriptionSourceViewerDecorationSupport
(ISourceViewer sourceViewer, IOverviewRuler overviewRuler, IAnnotationAccess annotationAccess, ISharedTextColors sharedTextColors) Creates a new decoration support for the given viewer. -
Uses of ISourceViewer in org.eclipse.ui.texteditor.spelling
Modifier and TypeMethodDescriptionstatic void
SpellingProblem.removeAll
(ISourceViewer sourceViewer, String word) Removes all spelling problems that are reported for the givenword
in the active editor.ModifierConstructorDescriptionSpellingReconcileStrategy
(ISourceViewer viewer, SpellingService spellingService) Creates a new comment reconcile strategy. -
Uses of ISourceViewer in org.eclipse.ui.texteditor.templates
ModifierConstructorDescriptionprotected
AbstractTemplatesPage
(ITextEditor editor, ISourceViewer viewer) Creates a new templates page.
SourceViewerConfiguration.getAutoEditStrategies(ISourceViewer, String)
instead