Interface IHyperlinkDetector

    • Method Detail

      • detectHyperlinks

        IHyperlink[] detectHyperlinks​(ITextViewer textViewer,
                                      IRegion region,
                                      boolean canShowMultipleHyperlinks)
        Tries to detect hyperlinks for the given region in the given text viewer and returns them.

        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 true 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 may allow to select from a list.
        the hyperlinks or null if no hyperlink was detected