@Override public synchronized boolean remove(final Object action) { if(log.isDebugEnabled()) { log.debug(String.format("Remove action %s", action)); } running.remove(action); if(super.remove(action)) { ((BackgroundAction) action).removeListener(this); } return true; }
public void stop(BackgroundAction action) { invoke(new DefaultMainAction() { @Override public void run() { progress.stopAnimation(null); } }); action.removeListener(this); } });