use of org.eclipse.ceylon.langtools.source.util.TaskListener in project ceylon by eclipse.
the class MultiTaskListener method add.
public void add(TaskListener listener) {
for (TaskListener l : listeners) {
if (ccw.unwrap(l) == listener)
throw new IllegalStateException();
}
listeners = Arrays.copyOf(listeners, listeners.length + 1);
listeners[listeners.length - 1] = ccw.wrap(listener);
}
Aggregations