Package org.eclipse.jface.text.hyperlink
Class URLHyperlink
java.lang.Object
org.eclipse.jface.text.hyperlink.URLHyperlink
- All Implemented Interfaces:
IHyperlink
URL hyperlink.
- Since:
- 3.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe region covered by this type of hyperlink.Optional text for this hyperlink.Optional label for this type of hyperlink.Returns the URL string of this hyperlink.void
open()
Opens the given hyperlink.
-
Constructor Details
-
URLHyperlink
Creates a new URL hyperlink.- Parameters:
region
- the regionurlString
- the URL string
-
-
Method Details
-
getHyperlinkRegion
Description copied from interface:IHyperlink
The region covered by this type of hyperlink.- Specified by:
getHyperlinkRegion
in interfaceIHyperlink
- Returns:
- the hyperlink region
-
open
public void open()Description copied from interface:IHyperlink
Opens the given hyperlink.- Specified by:
open
in interfaceIHyperlink
-
getTypeLabel
Description copied from interface:IHyperlink
Optional label for this type of hyperlink.This type label can be used by
IHyperlinkPresenter
s which show several hyperlinks at once.- Specified by:
getTypeLabel
in interfaceIHyperlink
- Returns:
- the type label or
null
if none
-
getHyperlinkText
Description copied from interface:IHyperlink
Optional text for this hyperlink.This can be used in situations where there are several targets for the same hyperlink location.
- Specified by:
getHyperlinkText
in interfaceIHyperlink
- Returns:
- the text or
null
if none
-
getURLString
Returns the URL string of this hyperlink.- Returns:
- the URL string
- Since:
- 3.2
-