Package org.eclipse.jface.text.hyperlink
Interface IHyperlinkPresenter
- All Superinterfaces:
- ITextViewerLifecycle
- All Known Implementing Classes:
- DefaultHyperlinkPresenter,- MultipleHyperlinkPresenter
A hyperlink presenter shows hyperlinks on the installed text viewer and allows to pick one on of
 the hyperlinks.
 
 In order to provide backward compatibility for clients of IHyperlinkDetector,
 extension interfaces are used to provide a means of evolution. The following extension interfaces
 exist:
 
- IHyperlinkPresenterExtensionsince version 3.4, adds the ability to query whether the currently shown hyperlinks can be hidden.
- IHyperlinkPresenterExtension2since version 3.7, adds the ability distinguish between the modes in which the control either takes focus or not when visible.
 Clients may implement this interface. A default implementation is provided through
 DefaultHyperlinkPresenter.
 
- Since:
- 3.1
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionbooleanTells whether this presenter is able to handle more than one hyperlink.voidTells this hyperlink presenter to hide the hyperlinks requested to be shown byshowHyperlinks(IHyperlink[]).voidinstall(ITextViewer textViewer) Installs this hyperlink presenter on the given text viewer.voidshowHyperlinks(IHyperlink[] hyperlinks) Tells this hyperlink presenter to show the given hyperlinks on the installed text viewer.voidUninstalls this hyperlink presenter.
- 
Method Details- 
canShowMultipleHyperlinksboolean canShowMultipleHyperlinks()Tells whether this presenter is able to handle more than one hyperlink.- Returns:
- trueif this presenter can handle more than one hyperlink
 
- 
showHyperlinksTells this hyperlink presenter to show the given hyperlinks on the installed text viewer.- Parameters:
- hyperlinks- the hyperlinks to show
- Throws:
- IllegalArgumentException- if- hyperlinksis empty
- canShowMultipleHyperlinks()returns- falseand- hyperlinkscontains more than one element
 
 
- 
hideHyperlinksvoid hideHyperlinks()Tells this hyperlink presenter to hide the hyperlinks requested to be shown byshowHyperlinks(IHyperlink[]).
- 
installInstalls this hyperlink presenter on the given text viewer.- Specified by:
- installin interface- ITextViewerLifecycle
- Parameters:
- textViewer- the text viewer
 
- 
uninstallvoid uninstall()Uninstalls this hyperlink presenter.- Specified by:
- uninstallin interface- ITextViewerLifecycle
 
 
-