@Override public void setCanceled(boolean canceled) { this.progressHandle.suspend("Cancelled"); }
/** * Currently running task can switch to silent suspend mode where the progress bar * stops moving, hides completely or partially. Useful to make progress in status bar less intrusive * for very long running tasks, eg. running an ant script that executes user application, debugs user application etc. * Any incoming progress wakes up the progress bar to previous state. * @param message a message to display in the silent mode * @since org.netbeans.api.progress/1 1.10 */ public void suspend(String message) { LOG.log(Level.FINE, "{0}: {1}", new Object[] {displayName, message}); handle.suspend(message); }