public interface IHyperlinkDetector
Clients may implement this interface.
| Modifier and Type | Method and Description |
|---|---|
IHyperlink[] |
detectHyperlinks(ITextViewer textViewer,
IRegion region,
boolean canShowMultipleHyperlinks)
Tries to detect hyperlinks for the given region in
the given text viewer and returns them.
|
IHyperlink[] detectHyperlinks(ITextViewer textViewer, IRegion region, boolean canShowMultipleHyperlinks)
In most of the cases only one hyperlink should be returned.
textViewer - the text viewer on which the hover popup should be shownregion - the text range in the text viewer which is used to detect the hyperlinkscanShowMultipleHyperlinks - tells whether the caller is able to show multiple links
to the user.
If true IHyperlink.open() should directly open
the link and not show any additional UI to select from a list.
If false this method should only return one hyperlink
which upon IHyperlink.open() may allow to select from a list.null if no hyperlink was detectedGuidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.