public class URLHyperlink extends Object implements IHyperlink
Constructor and Description |
---|
URLHyperlink(IRegion region,
String urlString)
Creates a new URL hyperlink.
|
Modifier and Type | Method and Description |
---|---|
IRegion |
getHyperlinkRegion()
The region covered by this type of hyperlink.
|
String |
getHyperlinkText()
Optional text for this hyperlink.
|
String |
getTypeLabel()
Optional label for this type of hyperlink.
|
String |
getURLString()
Returns the URL string of this hyperlink.
|
void |
open()
Opens the given hyperlink.
|
public IRegion getHyperlinkRegion()
IHyperlink
getHyperlinkRegion
in interface IHyperlink
public void open()
IHyperlink
open
in interface IHyperlink
public String getTypeLabel()
IHyperlink
This type label can be used by IHyperlinkPresenter
s
which show several hyperlinks at once.
getTypeLabel
in interface IHyperlink
null
if nonepublic String getHyperlinkText()
IHyperlink
This can be used in situations where there are several targets for the same hyperlink location.
getHyperlinkText
in interface IHyperlink
null
if nonepublic String getURLString()
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.