|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A hyperlink detector tries to find a hyperlink at a given location in a given text viewer.
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:
IHyperlinkDetectorExtension
since version 3.3,
adds the ability to dispose a hyperlink detector
IHyperlinkDetectorExtension2
since version 3.3,
adds the ability to specify the state mask of the modifier
keys that need to be pressed for this hyperlink detector
Clients may implement this interface.
SourceViewerConfiguration.getHyperlinkDetectors(org.eclipse.jface.text.source.ISourceViewer)
Method Summary | |
---|---|
IHyperlink[] |
detectHyperlinks(ITextViewer textViewer,
IRegion region,
boolean canShowMultipleHyperlinks)
Tries to detect hyperlinks for the given region in the given text viewer and returns them. |
Method Detail |
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 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 detected
|
Eclipse Platform Release 3.3 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2007. All rights reserved.