Ejemplo n.º 1
0
 /**
  * Restore the monitor state.
  *
  * @see #saveState()
  * @since 2.0
  */
 public void restoreState() {
   if (tasks.size() > 0) {
     MonitorState state = (MonitorState) tasks.pop();
     setTaskName(state.getTaskString());
     subTask(state.getSubTaskString());
     this.showDetails = state.getShowDetails();
     this.currentCount = state.getCurrentCount();
     this.totalCopyCount = state.getTotalCopyCount();
   }
 }