|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ecf.ui.hyperlink.AbstractURLHyperlink
public abstract class AbstractURLHyperlink
Abstract class for representing ECF URL hyperlinks. This class can be subclassed to create an URL hyperlink specifically for accessing ECF protocols. For example, and XMPPURLHyperlink subclass can be created to open URLs of the form:
xmpp://foo@bar.com
Constructor Summary | |
---|---|
AbstractURLHyperlink(org.eclipse.jface.text.IRegion region,
java.net.URI uri)
Creates a new URL hyperlink. |
Method Summary | |
---|---|
protected abstract IConnectWizard |
createConnectWizard()
Create a connect wizard for this hyperlink. |
protected abstract IContainer |
createContainer()
|
org.eclipse.jface.text.IRegion |
getHyperlinkRegion()
|
java.lang.String |
getHyperlinkText()
|
protected org.eclipse.jface.text.IRegion |
getRegion()
|
java.lang.String |
getTypeLabel()
|
protected java.net.URI |
getURI()
|
java.lang.String |
getURLString()
Returns the URL string of this hyperlink. |
void |
open()
|
protected void |
setHyperlinkText(java.lang.String hyperlinkText)
|
protected void |
setRegion(org.eclipse.jface.text.IRegion region)
|
protected void |
setTypeLabel(java.lang.String typeLabel)
|
protected void |
setURI(java.net.URI uri)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractURLHyperlink(org.eclipse.jface.text.IRegion region, java.net.URI uri)
region
- uri
- Method Detail |
---|
protected java.net.URI getURI()
protected void setURI(java.net.URI uri)
protected org.eclipse.jface.text.IRegion getRegion()
protected void setRegion(org.eclipse.jface.text.IRegion region)
protected void setTypeLabel(java.lang.String typeLabel)
protected abstract IContainer createContainer() throws ContainerCreateException
ContainerCreateException
protected abstract IConnectWizard createConnectWizard()
open()
.
null
instance implementing IConnectWizard
.public org.eclipse.jface.text.IRegion getHyperlinkRegion()
getHyperlinkRegion
in interface org.eclipse.jface.text.hyperlink.IHyperlink
public java.lang.String getTypeLabel()
getTypeLabel
in interface org.eclipse.jface.text.hyperlink.IHyperlink
public java.lang.String getHyperlinkText()
getHyperlinkText
in interface org.eclipse.jface.text.hyperlink.IHyperlink
public java.lang.String getURLString()
protected void setHyperlinkText(java.lang.String hyperlinkText)
hyperlinkText
- the hyperlinkText to setpublic void open()
open
in interface org.eclipse.jface.text.hyperlink.IHyperlink
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |