- Timestamp:
- 2017-06-02T17:14:00+12:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/download/DownloadProgressBar.java
r31692 r31720 132 132 // However, now we additionally ensure that the wget launched by the perl is stopped before 133 133 // process.destroy(), so at least it cleans up better. I'm therefore changing it to a "Stop" button. 134 stop_start_button = new GLIButton(Dictionary.get("Mirroring.DownloadJob.Pause"),Dictionary.get("Mirroring.DownloadJob.Pause_Tooltip")); 135 //stop_start_button = new GLIButton(Dictionary.get("Mirroring.DownloadJob.Stop"),Dictionary.get("Mirroring.DownloadJob.Stop_Tooltip")); 134 stop_start_button = new GLIButton(Dictionary.get("Mirroring.DownloadJob.Stop"),Dictionary.get("Mirroring.DownloadJob.Stop_Tooltip")); 136 135 stop_start_button.addActionListener(this); 137 136 stop_start_button.addActionListener(owner); … … 189 188 if (current_action == DownloadJob.RUNNING) { 190 189 current_action = DownloadJob.STOPPED; 191 stop_start_button.setText(Dictionary.get("Mirroring.DownloadJob. Resume"));192 stop_start_button.setToolTipText(Dictionary.get("Mirroring.DownloadJob. Resume_Tooltip"));190 stop_start_button.setText(Dictionary.get("Mirroring.DownloadJob.Stopped")); 191 stop_start_button.setToolTipText(Dictionary.get("Mirroring.DownloadJob.Stopped_Tooltip")); 193 192 194 193 progress.setString(Dictionary.get("Mirroring.DownloadJob.Download_Stopped")); 195 194 progress.setIndeterminate(false); 196 } else { 197 current_action = DownloadJob.RUNNING; 198 // we are stopped, so restart 199 stop_start_button.setText(Dictionary.get("Mirroring.DownloadJob.Pause")); 200 stop_start_button.setToolTipText(Dictionary.get("Mirroring.DownloadJob.Pause_Tooltip")); 201 progress.setString(Dictionary.get("Mirroring.DownloadJob.Download_Progress")); 202 progress.setIndeterminate(true); 195 stop_start_button.setEnabled(false); 203 196 } 204 197 }
Note:
See TracChangeset
for help on using the changeset viewer.