|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.text.hyperlink.AbstractHyperlinkDetector
public abstract class AbstractHyperlinkDetector
A hyperlink detector that can provide adapters through a context that can be set by the creator of this hyperlink detector.
Clients may subclass.
| Constructor Summary | |
|---|---|
AbstractHyperlinkDetector()
|
|
| Method Summary | |
|---|---|
void |
dispose()
Disposes this hyperlink detector. |
protected java.lang.Object |
getAdapter(java.lang.Class adapterClass)
Returns an object which is an instance of the given class and provides additional context for this hyperlink detector. |
void |
setContext(IAdaptable context)
Sets this hyperlink detector's context which is responsible to provide the adapters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.jface.text.hyperlink.IHyperlinkDetector |
|---|
detectHyperlinks |
| Constructor Detail |
|---|
public AbstractHyperlinkDetector()
| Method Detail |
|---|
public final void setContext(IAdaptable context)
throws java.lang.IllegalStateException,
java.lang.IllegalArgumentException
context - the context for this hyperlink detector
java.lang.IllegalArgumentException - if the context is null
java.lang.IllegalStateException - if this method is called more than oncepublic void dispose()
IHyperlinkDetectorExtension
dispose in interface IHyperlinkDetectorExtensionprotected final java.lang.Object getAdapter(java.lang.Class adapterClass)
adapterClass - the adapter class to look up
null if this object does not
have an adapter for the given class
|
Eclipse Platform Release 3.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.