Changeset 22103
- Timestamp:
- 2010-05-18T20:03:54+12:00 (14 years ago)
- Location:
- main/trunk/gli/src/org/greenstone/gatherer/download
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/gli/src/org/greenstone/gatherer/download/DownloadJob.java
r20924 r22103 387 387 // Add download 388 388 String new_url = line.substring(line.indexOf("`") + 1, line.lastIndexOf("'")); 389 //addDownload("http:/" + new_url);389 progress.addDownload("file"); //addDownload("http:/" + new_url.substring(cachedir_prefix_length()-1)); 390 390 } 391 391 } … … 415 415 String new_url = 416 416 line.substring(line.indexOf("`") + 1, line.lastIndexOf("'")); 417 //addDownload("http:/" + new_url);417 progress.addDownload("file"); //addDownload("http:/" + new_url.substring(cachedir_prefix_length()-1)); 418 418 downloadWarning(); 419 419 } … … 435 435 String total_ID = line.substring(line.indexOf(":") + 1, line.indexOf(">")); 436 436 progress.setTotalDownload((Integer.valueOf(total_ID)).intValue()); 437 progress.resetFileCount(); 437 progress.resetFileCount(); 438 progress.addDownload("files"); // for display: "Downloading files" 438 439 } 439 440 else if (line.lastIndexOf("<<Done>>") != -1) { … … 456 457 if(state == STOPPED) { 457 458 boolean terminatePerlScript = true; 458 459 459 460 // When GLI is working with wget-based download modes other than OAI (MediaWiki and Web 460 461 // download) and the STOP button has been pressed, wget needs to be prematurely terminated. -
main/trunk/gli/src/org/greenstone/gatherer/download/DownloadProgressBar.java
r13032 r22103 296 296 } 297 297 298 /** Once a mirroring task is complete, i sthe DownloadJob returns from the298 /** Once a mirroring task is complete, if the DownloadJob returns from the 299 299 * native call but the status is still running, then this method 300 * is called to once again tinker with the pr itty visual300 * is called to once again tinker with the pretty visual 301 301 * components. 302 302 */ … … 309 309 progress.setValue(progress.getMaximum()); 310 310 progress.setString(Dictionary.get("Mirroring.DownloadJob.Download_Complete")); 311 current_status.setText(Dictionary.get("Mirroring.DownloadJob.Download_Complete")); 312 // will display "Download Complete" once an OAI download session has finished running 311 313 312 314 stop_start_button.setEnabled(false); … … 315 317 316 318 /** When called this method updates the DownloadProgressBar to reflect 317 * the am mount of the current file downloaded.319 * the amount of the current file downloaded. 318 320 */ 319 321 public void updateProgress(long current, long expected) { … … 378 380 } 379 381 else { 380 382 current_status.setText(Dictionary.get("Mirroring.DownloadJob.Download_Complete")); 381 383 } 382 384
Note:
See TracChangeset
for help on using the changeset viewer.