use of com.biglybt.core.util.CopyOnWriteList in project BiglyBT by BiglySoftware.
the class ProgressReporter method addListener.
/* (non-Javadoc)
* @see com.biglybt.ui.swt.mainwindow.IProgressReporter#addListener(com.biglybt.ui.swt.mainwindow.IProgressReporterListener)
*/
@Override
public void addListener(IProgressReporterListener listener) {
if (shouldIgnore()) {
return;
}
if (null != listener) {
if (null == reporterListeners) {
reporterListeners = new CopyOnWriteList();
reporterListeners.add(listener);
} else if (!reporterListeners.contains(listener)) {
reporterListeners.add(listener);
}
}
}
Aggregations