|Constructor and Description|
Creates a new URL hyperlink detector.
As of 3.2, replaced by
|Modifier and Type||Method and Description|
Tries to detect hyperlinks for the given region in the given text viewer and returns them.
dispose, getAdapter, setContext
public 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 shown
region- the text range in the text viewer which is used to detect the hyperlinks
canShowMultipleHyperlinks- tells whether the caller is able to show multiple links to the user. If
IHyperlink.open()should directly open the link and not show any additional UI to select from a list. If
falsethis method should only return one hyperlink which upon
IHyperlink.open()may allow to select from a list.
nullif no hyperlink was detected
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.