use of org.picocontainer.Disposable in project intellij-plugins by JetBrains.
the class BaseTestCase method markLastListenerForCleanup.
public void markLastListenerForCleanup() {
IDEtalkListener[] listeners = getBroadcasterImpl().getListeners();
final IDEtalkListener toRemove = listeners[listeners.length - 1];
disposeOnTearDown(new Disposable() {
@Override
public void dispose() {
getBroadcaster().removeListener(toRemove);
}
});
}
Aggregations