- Timestamp:
- 2005-10-14T15:19:36+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java
r10587 r10726 54 54 import org.greenstone.gatherer.Gatherer; 55 55 import org.greenstone.gatherer.collection.Collection; 56 import org.greenstone.gatherer.collection.CollectionManager; 56 57 import org.greenstone.gatherer.file.FileOpenActionListener; 57 58 import org.greenstone.gatherer.file.WorkspaceTree; … … 394 395 content_pane.add(tab_pane, BorderLayout.CENTER); 395 396 397 // Add an extra progress bar at the bottom of every screen when using a remote Greenstone server 398 if (Gatherer.isGsdlRemote) { 399 JPanel remote_greenstone_server_progress_panel = new JPanel(); 400 JLabel remote_greenstone_server_progress_label = new JLabel(Dictionary.get("RemoteGreenstoneServer.Progress")); 401 remote_greenstone_server_progress_panel.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 402 remote_greenstone_server_progress_panel.setLayout(new BorderLayout()); 403 remote_greenstone_server_progress_panel.add(remote_greenstone_server_progress_label, BorderLayout.WEST); 404 remote_greenstone_server_progress_panel.add(RemoteGreenstoneServer.getProgressBar(), BorderLayout.CENTER); 405 content_pane.add(remote_greenstone_server_progress_panel, BorderLayout.SOUTH); 406 } 407 396 408 // Call refresh to update all controls to reflect current collection status. 397 409 refresh(-1, Gatherer.c_man.ready()); … … 641 653 { 642 654 // If using a remote Greenstone check if the collection configurations have been downloaded; do so if not 643 if (Gatherer.isGsdlRemote) { 644 File collect_directory = new File(Gatherer.getCollectDirectoryPath()); 645 if (!collect_directory.exists() || collect_directory.listFiles().length == 0) { 646 if (!RemoteGreenstoneServer.downloadCollectionConfigurations()) { 647 // Something went wrong downloading the collection configurations 648 return; 649 } 650 } 655 if (Gatherer.isGsdlRemote && !CollectionManager.downloaded_collection_configurations) { 656 if (RemoteGreenstoneServer.downloadCollectionConfigurations().equals("")) { 657 // Something went wrong downloading the collection configurations 658 return; 659 } 660 661 CollectionManager.downloaded_collection_configurations = true; 651 662 } 652 663 … … 712 723 public void run() 713 724 { 725 // If using a remote Greenstone check if the collection configurations have been downloaded; do so if not 726 if (Gatherer.isGsdlRemote && !CollectionManager.downloaded_collection_configurations) { 727 if (RemoteGreenstoneServer.downloadCollectionConfigurations().equals("")) { 728 // Something went wrong downloading the collection configurations 729 return; 730 } 731 732 CollectionManager.downloaded_collection_configurations = true; 733 } 734 735 // Create the collection details prompt from new collection prompt 714 736 NewCollectionMetadataPrompt ncm_prompt = null; 715 // Create the collection details prompt from new collection prompt716 737 NewCollectionDetailsPrompt ncd_prompt = new NewCollectionDetailsPrompt(); 717 738 // If no previous collection was indicated as a model design, then show the metadata selection prompt from new collection prompt
Note:
See TracChangeset
for help on using the changeset viewer.