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()
IHyperlinkgetHyperlinkRegion in interface IHyperlinkpublic void open()
IHyperlinkopen in interface IHyperlinkpublic String getTypeLabel()
IHyperlink
This type label can be used by IHyperlinkPresenters
which show several hyperlinks at once.
getTypeLabel in interface IHyperlinknull if nonepublic String getHyperlinkText()
IHyperlinkThis can be used in situations where there are several targets for the same hyperlink location.
getHyperlinkText in interface IHyperlinknull if nonepublic String getURLString()
Guidelines for using Eclipse APIs. Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.