private static void taskCancelled(ProgressThread task){
  for (  ProgressThreadStateListener l : listener.getListeners(ProgressThreadStateListener.class)) {
    l.progressThreadCancelled(task);
  }
}

private static void taskCancelled ( ProgressThread task ) { for ( ProgressThreadStateListener l : listener . getListeners ( ProgressThreadStateListener . class ) ) { l . progressThreadCancelled ( task ) ; } }
notify listeners that a task was cancelled .
