public abstract class AbstractHyperlinkDetector extends Object implements IHyperlinkDetector, IHyperlinkDetectorExtension
Clients may subclass.
Constructor and Description |
---|
AbstractHyperlinkDetector() |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes this hyperlink detector.
|
protected Object |
getAdapter(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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
detectHyperlinks
public final void setContext(IAdaptable context) throws IllegalStateException, IllegalArgumentException
context
- the context for this hyperlink detectorIllegalArgumentException
- if the context is null
IllegalStateException
- if this method is called more than oncepublic void dispose()
IHyperlinkDetectorExtension
dispose
in interface IHyperlinkDetectorExtension
protected final Object getAdapter(Class adapterClass)
adapterClass
- the adapter class to look upnull
if this object does not
have an adapter for the given class
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.