|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectclasspathhelper.eclipse.ui.AbstractClassPathModel
Abstract base class providing a basic implementation of the listener registration/deregistration methods.
It also adds a fireClassPathChangeEvent(classpathhelper.CGClassLoader) method that
will notify all the listeners of a classpath change.
This class is intended to be extended by concrete implementations of a classpath model.
| Constructor Summary | |
AbstractClassPathModel()
|
|
| Method Summary | |
void |
addClassPathChangeListener(IClassPathChangeListener changeListener)
Registers a classpath change listener with this model object. |
protected void |
fireClassPathChangeEvent(CGClassLoader classLoader)
Method intended to be called by subclasses to notify all the listeners of a classloader change. |
protected abstract CGClassLoader |
getCurrentClassLoader()
Internal method used to obtain the current classloader for addClassPathChangeListener(IClassPathChangeListener). |
protected int |
getNumberOfListeners()
|
boolean |
removeClassPathChangeListener(IClassPathChangeListener changeListener)
Deregisteres a classpath change listener with this model object. |
void |
reset()
Method that requests that this model reset (and resend) its classpath, clearing any internal caching. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface classpathhelper.eclipse.ui.IClassPathModel |
startClassPathListening, stopClassPathListening |
| Constructor Detail |
public AbstractClassPathModel()
| Method Detail |
protected void fireClassPathChangeEvent(CGClassLoader classLoader)
classLoader - The new classloader.protected abstract CGClassLoader getCurrentClassLoader()
addClassPathChangeListener(IClassPathChangeListener).
If not class loader exists, this method should return null.
protected int getNumberOfListeners()
public void reset()
IClassPathModel
reset in interface IClassPathModelpublic void addClassPathChangeListener(IClassPathChangeListener changeListener)
IClassPathModel
addClassPathChangeListener in interface IClassPathModelchangeListener - The listener.public boolean removeClassPathChangeListener(IClassPathChangeListener changeListener)
IClassPathModel
removeClassPathChangeListener in interface IClassPathModelchangeListener - The listener to remove.
true If the listener was found, false
If the listener was not found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||