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
-
Interface Summary Interface Description IHyperlink Represents a hyperlink.IHyperlinkDetector A hyperlink detector tries to find a hyperlink at a given location in a given text viewer.IHyperlinkDetectorExtension ExtendsIHyperlinkDetector
with ability to dispose a hyperlink detector.IHyperlinkDetectorExtension2 ExtendsIHyperlinkDetector
with ability to specify the state mask of the modifier keys that need to be pressed for this hyperlink detector.IHyperlinkPresenter A hyperlink presenter shows hyperlinks on the installed text viewer and allows to pick one on of the hyperlinks.IHyperlinkPresenterExtension ExtendsIHyperlinkPresenter
with ability to query whether the currently shown hyperlinks can be hidden.IHyperlinkPresenterExtension2 ExtendsIHyperlinkPresenter
with ability to distinguish between the modes in which the control either takes focus or not when visible. -
Class Summary Class Description AbstractHyperlinkDetector A hyperlink detector that can provide adapters through a context that can be set by the creator of this hyperlink detector.DefaultHyperlinkPresenter The default hyperlink presenter underlines the link and colors the line and the text with the given color.HyperlinkManager Default implementation of a hyperlink manager.HyperlinkManager.DETECTION_STRATEGY Detection strategy.MultipleHyperlinkPresenter A hyperlink presenter capable of showing multiple hyperlinks in a hover.URLHyperlink URL hyperlink.URLHyperlinkDetector URL hyperlink detector.