Package org.eclipse.jface.text.hyperlink
package org.eclipse.jface.text.hyperlink
Provides support for detecting and displaying hyperlinks in
ISourceViewer
s.
SourceViewer
supports hyperlinked text regions inline in the displayed text. It delegates
the detection and presentation of hyperlinks to IHyperlinkDetector
and IHyperlinkPresenter
, respectively.
Override the following methods in SourceViewerConfiguration
to customize the hyperlink behavior of a source viewer:
getHyperlinkDetectors()
to specify the set of hyperlink detectors used by the viewergetHyperlinkPresenter()
to specify the set of hyperlink presenters used by the viewergetHyperlinkStateMask()
to specify when hyperlinks are activated
-
ClassDescriptionA hyperlink detector that can provide adapters through a context that can be set by the creator of this hyperlink detector.The default hyperlink presenter underlines the link and colors the line and the text with the given color.Default implementation of a hyperlink manager.Detection strategy.Represents a hyperlink.A hyperlink detector tries to find a hyperlink at a given location in a given text viewer.Extends
IHyperlinkDetector
with ability to dispose a hyperlink detector.ExtendsIHyperlinkDetector
with ability to specify the state mask of the modifier keys that need to be pressed for this hyperlink detector.A hyperlink presenter shows hyperlinks on the installed text viewer and allows to pick one on of the hyperlinks.ExtendsIHyperlinkPresenter
with ability to query whether the currently shown hyperlinks can be hidden.ExtendsIHyperlinkPresenter
with ability to distinguish between the modes in which the control either takes focus or not when visible.A hyperlink presenter capable of showing multiple hyperlinks in a hover.URL hyperlink.URL hyperlink detector.