Package org.eclipse.jface.text.hyperlink
Interface IHyperlink
-
- All Known Implementing Classes:
URLHyperlink
public interface IHyperlinkRepresents a hyperlink.Clients may implement this interface.
- Since:
- 3.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IRegiongetHyperlinkRegion()The region covered by this type of hyperlink.java.lang.StringgetHyperlinkText()Optional text for this hyperlink.java.lang.StringgetTypeLabel()Optional label for this type of hyperlink.voidopen()Opens the given hyperlink.
-
-
-
Method Detail
-
getHyperlinkRegion
IRegion getHyperlinkRegion()
The region covered by this type of hyperlink.- Returns:
- the hyperlink region
-
getTypeLabel
java.lang.String getTypeLabel()
Optional label for this type of hyperlink.This type label can be used by
IHyperlinkPresenters which show several hyperlinks at once.- Returns:
- the type label or
nullif none
-
getHyperlinkText
java.lang.String getHyperlinkText()
Optional text for this hyperlink.This can be used in situations where there are several targets for the same hyperlink location.
- Returns:
- the text or
nullif none
-
open
void open()
Opens the given hyperlink.
-
-