Changeset 13026 for trunk/gli/src/org/greenstone/gatherer/gui
- Timestamp:
- 2006-10-06T09:44:45+13:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/DownloadPane.java
r12802 r13026 375 375 return; 376 376 } 377 // Lets see what warning message we should display, if any. 378 String wget_version_str = Configuration.getWGetVersion(); 379 if(wget_version_str.equals(StaticStrings.NO_WGET_STR)) { 380 // If there was no WGet available then downloading is disabled entirely 381 download_button_enabled = false; 382 // And we tell the user why. 383 Gatherer.missingWGET(); 384 } 385 else if(wget_version_str.equals(StaticStrings.WGET_OLD_STR)) { 386 // Downloading is enabled 387 download_button_enabled = true; 388 // But we display a preventable warning message about the path problems. 389 Gatherer.oldWGET(); 390 } 391 // Otherwise version must be ok 392 else { 393 download_button_enabled = true; 394 } 377 395 378 // It is also a good time to determine if the download should be enabled - ie if its allowed to be enabled and a valid URL is present in the field. 379 download_button_enabled = true; 396 380 //download_button.setEnabled(download_button_enabled); 397 381 }
Note:
See TracChangeset
for help on using the changeset viewer.