|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object classpathhelper.eclipse.ui.AbstractClassPathModel classpathhelper.eclipse.basicmodel.BasicClassPathModel
Classpath model that uses a standard classpath string to construct
a CGClassLoader
. The classpath string is stored as preference.
This class also monitors the underly files in the classpath and will resend a new classloader if any files are updated.
Constructor Summary | |
BasicClassPathModel()
|
Method Summary | |
void |
fileChanged(FileChangeMonitor monitor,
FileChangedEvent[] evts)
Callback method indicating file(s) have changed. |
protected CGClassLoader |
getCurrentClassLoader()
Internal method used to obtain the current classloader for AbstractClassPathModel.addClassPathChangeListener(IClassPathChangeListener) . |
void |
propertyChange(PropertyChangeEvent evt)
|
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. |
protected void |
updateClassLoader(java.lang.String classpath)
Internal method that fires a new classloader event. |
Methods inherited from class classpathhelper.eclipse.ui.AbstractClassPathModel |
addClassPathChangeListener, fireClassPathChangeEvent, getNumberOfListeners, removeClassPathChangeListener, reset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BasicClassPathModel()
Method Detail |
protected void updateClassLoader(java.lang.String classpath)
classpath
- string in the standard classpath format.protected CGClassLoader getCurrentClassLoader()
AbstractClassPathModel
AbstractClassPathModel.addClassPathChangeListener(IClassPathChangeListener)
.
If not class loader exists, this method should return null.
getCurrentClassLoader
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.
startClassPathListening
in interface IClassPathModel
public void stopClassPathListening()
IClassPathModel
stopClassPathListening
in interface IClassPathModel
public void fileChanged(FileChangeMonitor monitor, FileChangedEvent[] evts)
IFileChangeListener
fileChanged
in interface IFileChangeListener
monitor
- The monitor these changes are from.evts
- An array of the events representing all
the file changes.public void propertyChange(PropertyChangeEvent evt)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |