|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.text.hyperlink.URLHyperlinkDetector
public class URLHyperlinkDetector
URL hyperlink detector.
| Constructor Summary | |
|---|---|
URLHyperlinkDetector()
Creates a new URL hyperlink detector. |
|
URLHyperlinkDetector(ITextViewer textViewer)
Deprecated. As of 3.2, replaced by URLHyperlinkDetector |
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public URLHyperlinkDetector()
public URLHyperlinkDetector(ITextViewer textViewer)
URLHyperlinkDetector
textViewer - the text viewer in which to detect the hyperlink| Method Detail |
|---|
public IHyperlink[] detectHyperlinks(ITextViewer textViewer,
IRegion region,
boolean canShowMultipleHyperlinks)
IHyperlinkDetectorIn most of the cases only one hyperlink should be returned.
detectHyperlinks in interface IHyperlinkDetectortextViewer - 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.2 |
|||||||||
| 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, 2006. All rights reserved.