Uses of Interface
org.eclipse.jface.text.source.ISourceViewer
-
Packages that use ISourceViewer Package Description org.eclipse.compare.contentmergeviewer Support for compare and merge viewers which show the content side-by-side.org.eclipse.jface.text Provides a framework for creating and manipulating text documents.org.eclipse.jface.text.quickassist This package provides the quick assist assistant add-on for anISourceViewer
.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.ui.console Application programming interfaces for interaction with the Eclipse console.org.eclipse.ui.editors.text Provides a standard text editor and concrete document providers basedIFileBuffer
and others directly handlingIFile
andIStorage
as editor input.org.eclipse.ui.texteditor Provides a framework for text editors obeying to the desktop rules.org.eclipse.ui.texteditor.spelling Partial infrastructure for spell checking in text editors.org.eclipse.ui.texteditor.templates Application programming interfaces for interaction with the Eclipse text editor template support. -
-
Uses of ISourceViewer in org.eclipse.compare.contentmergeviewer
Methods in org.eclipse.compare.contentmergeviewer with parameters of type ISourceViewer Modifier and Type Method Description protected 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
Constructors in org.eclipse.jface.text with parameters of type ISourceViewer Constructor Description DefaultTextHover(ISourceViewer sourceViewer)
Creates a new annotation hover. -
Uses of ISourceViewer in org.eclipse.jface.text.quickassist
Methods in org.eclipse.jface.text.quickassist that return ISourceViewer Modifier and Type Method Description ISourceViewer
IQuickAssistInvocationContext. getSourceViewer()
Returns the viewer for this context.Methods in org.eclipse.jface.text.quickassist with parameters of type ISourceViewer Modifier and Type Method Description void
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
Classes in org.eclipse.jface.text.source that implement ISourceViewer Modifier and Type Class Description class
SourceViewer
SWT based implementation ofISourceViewer
and its extension interfaces.Methods in org.eclipse.jface.text.source that return ISourceViewer Modifier and Type Method Description protected ISourceViewer
AnnotationBarHoverManager. getSourceViewer()
Returns the source viewer for this hover manager.ISourceViewer
TextInvocationContext. getSourceViewer()
Methods in org.eclipse.jface.text.source with parameters of type ISourceViewer Modifier and Type Method Description protected 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.IAnnotationHover
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.IAutoEditStrategy[]
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.IAutoIndentStrategy
SourceViewerConfiguration. getAutoIndentStrategy(ISourceViewer sourceViewer, String contentType)
Deprecated.since 3.1 useSourceViewerConfiguration.getAutoEditStrategies(ISourceViewer, String)
insteadorg.eclipse.jface.text.codemining.ICodeMiningProvider[]
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.String
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.IContentAssistant
SourceViewerConfiguration. getContentAssistant(ISourceViewer sourceViewer)
Returns the content assistant ready to be used with the given source viewer.IContentFormatter
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.ITextDoubleClickStrategy
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.String
DefaultAnnotationHover. getHoverInfo(ISourceViewer sourceViewer, int lineNumber)
String
IAnnotationHover. getHoverInfo(ISourceViewer sourceViewer, int lineNumber)
Returns the text which should be presented in the a hover popup window.Object
IAnnotationHoverExtension. getHoverInfo(ISourceViewer sourceViewer, ILineRange lineRange, int visibleNumberOfLines)
Returns the object which should be presented in the a hover popup window.String
LineChangeHover. getHoverInfo(ISourceViewer sourceViewer, int lineNumber)
Object
LineChangeHover. getHoverInfo(ISourceViewer sourceViewer, ILineRange lineRange, int visibleLines)
ILineRange
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.ILineRange
LineChangeHover. getHoverLineRange(ISourceViewer viewer, int lineNumber)
IHyperlinkDetector[]
SourceViewerConfiguration. getHyperlinkDetectors(ISourceViewer sourceViewer)
Returns the hyperlink detectors which be used to detect hyperlinks in the given source viewer.IHyperlinkPresenter
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.IInformationControlCreator
SourceViewerConfiguration. getInformationControlCreator(ISourceViewer sourceViewer)
Returns the information control creator.IInformationPresenter
SourceViewerConfiguration. getInformationPresenter(ISourceViewer sourceViewer)
Returns the information presenter which will determine and shown information requested for the current cursor position.IAnnotationHover
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
.IPresentationReconciler
SourceViewerConfiguration. getPresentationReconciler(ISourceViewer sourceViewer)
Returns the presentation reconciler ready to be used with the given source viewer.IQuickAssistAssistant
SourceViewerConfiguration. getQuickAssistAssistant(ISourceViewer sourceViewer)
Returns the quick assist assistant ready to be used with the given source viewer.IReconciler
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.ITextHover
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.ITextHover
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.IUndoManager
SourceViewerConfiguration. getUndoManager(ISourceViewer sourceViewer)
Returns the undo manager for the given source viewer.Constructors in org.eclipse.jface.text.source with parameters of type ISourceViewer Constructor Description AnnotationBarHoverManager(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.projection
Classes in org.eclipse.jface.text.source.projection that implement ISourceViewer Modifier and Type Class Description class
ProjectionViewer
A projection source viewer is a source viewer which supports multiple visible regions which can dynamically be changed.Methods in org.eclipse.jface.text.source.projection with parameters of type ISourceViewer Modifier and Type Method Description <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
Classes in org.eclipse.ui.console that implement ISourceViewer Modifier and Type Class Description class
TextConsoleViewer
Default viewer used to display aTextConsole
. -
Uses of ISourceViewer in org.eclipse.ui.editors.text
Methods in org.eclipse.ui.editors.text with parameters of type ISourceViewer Modifier and Type Method Description IAnnotationHover
TextSourceViewerConfiguration. getAnnotationHover(ISourceViewer sourceViewer)
int[]
TextSourceViewerConfiguration. getConfiguredTextHoverStateMasks(ISourceViewer sourceViewer, String contentType)
IHyperlinkDetector[]
TextSourceViewerConfiguration. getHyperlinkDetectors(ISourceViewer sourceViewer)
protected Map<String,IAdaptable>
TextSourceViewerConfiguration. getHyperlinkDetectorTargets(ISourceViewer sourceViewer)
Returns the hyperlink detector targets supported by the given source viewer.IHyperlinkPresenter
TextSourceViewerConfiguration. getHyperlinkPresenter(ISourceViewer sourceViewer)
int
TextSourceViewerConfiguration. getHyperlinkStateMask(ISourceViewer sourceViewer)
String[]
TextSourceViewerConfiguration. getIndentPrefixes(ISourceViewer sourceViewer, String contentType)
IAnnotationHover
TextSourceViewerConfiguration. getOverviewRulerAnnotationHover(ISourceViewer sourceViewer)
IQuickAssistAssistant
TextSourceViewerConfiguration. getQuickAssistAssistant(ISourceViewer sourceViewer)
IReconciler
TextSourceViewerConfiguration. getReconciler(ISourceViewer sourceViewer)
Returns the reconciler ready to be used with the given source viewer.protected 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)
ITextHover
TextSourceViewerConfiguration. getTextHover(ISourceViewer sourceViewer, String contentType)
IUndoManager
TextSourceViewerConfiguration. getUndoManager(ISourceViewer sourceViewer)
-
Uses of ISourceViewer in org.eclipse.ui.texteditor
Methods in org.eclipse.ui.texteditor that return ISourceViewer Modifier and Type Method Description protected 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 ISourceViewer
AbstractTextEditor. getSourceViewer()
Returns the editor's source viewer.Methods in org.eclipse.ui.texteditor with parameters of type ISourceViewer Modifier and Type Method Description protected static 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 boolean
AbstractTextEditor. isVisible(ISourceViewer viewer, int offset, int length)
Tells whether the given region is visible in the given source viewer.protected static 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 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.Constructors in org.eclipse.ui.texteditor with parameters of type ISourceViewer Constructor Description SourceViewerDecorationSupport(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
Methods in org.eclipse.ui.texteditor.spelling with parameters of type ISourceViewer Modifier and Type Method Description static void
SpellingProblem. removeAll(ISourceViewer sourceViewer, String word)
Removes all spelling problems that are reported for the givenword
in the active editor.Constructors in org.eclipse.ui.texteditor.spelling with parameters of type ISourceViewer Constructor Description SpellingReconcileStrategy(ISourceViewer viewer, SpellingService spellingService)
Creates a new comment reconcile strategy. -
Uses of ISourceViewer in org.eclipse.ui.texteditor.templates
Constructors in org.eclipse.ui.texteditor.templates with parameters of type ISourceViewer Constructor Description AbstractTemplatesPage(ITextEditor editor, ISourceViewer viewer)
Creates a new templates page.
-