|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclasspathhelper.eclipse.ui.AbstractClassPathModel
classpathhelper.eclipse.ui.ClassPathModelMultiplexer
IClassPathModel
that manages all of the IClassPathModel
plugins. Its role is to take the currently selected model source and
propogate its changes.
All views should register themselves with this model.
This class listens to preference changes so it can switch to the currently selected source, updating all of the views.
This class also resets models when no listeners are registered (such as when all views are closed). This is intended to free up memory that might otherwise be cached.
Constructor Summary | |
ClassPathModelMultiplexer()
|
Method Summary | |
void |
addClassPathChangeListener(IClassPathChangeListener changeListener)
Registers a classpath change listener with this model object. |
protected CGClassLoader |
getCurrentClassLoader()
Internal method used to obtain the current classloader for addClassPathChangeListener(IClassPathChangeListener) . |
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. |
void |
startClassPathListening()
Method called to indicate that this model is the selected model and should start sending classpath change events. |
void |
stopClassPathListening()
Method called to indicate that this model is nolonger the selected model and can clean up any listeners it has started (as well as any caching. |
Methods inherited from class classpathhelper.eclipse.ui.AbstractClassPathModel |
fireClassPathChangeEvent, getNumberOfListeners |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassPathModelMultiplexer()
Method Detail |
protected CGClassLoader getCurrentClassLoader()
AbstractClassPathModel
AbstractClassPathModel.addClassPathChangeListener(IClassPathChangeListener)
.
If not class loader exists, this method should return null.
getCurrentClassLoader
in class AbstractClassPathModel
public void reset()
IClassPathModel
reset
in interface IClassPathModel
reset
in class AbstractClassPathModel
public void startClassPathListening()
IClassPathModel
Method called to indicate that this model is the selected model and should start sending classpath change events. If a model needs to attach any listeners this is a good point to do so.
A model should also use this call send its initial
class loader via its IClassPathChangeListener
objects.
public void stopClassPathListening()
IClassPathModel
public void addClassPathChangeListener(IClassPathChangeListener changeListener)
IClassPathModel
addClassPathChangeListener
in interface IClassPathModel
addClassPathChangeListener
in class AbstractClassPathModel
public boolean removeClassPathChangeListener(IClassPathChangeListener changeListener)
IClassPathModel
removeClassPathChangeListener
in interface IClassPathModel
removeClassPathChangeListener
in class AbstractClassPathModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |