Ignore:
Timestamp:
2008-10-24T17:45:51+13:00 (16 years ago)
Author:
ak19
Message:

Turned class RemoteGreenstoneServer.java from an all-static class into a regular OOP class. It is now also split into three files (the other two being ActionQueue.java and RemoteGreenstoneServerAction.java).

Location:
gli/trunk/src/org/greenstone/gatherer/gui
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/gui/ExplodeMetadataDatabasePrompt.java

    r13820 r17612  
    274274        String collection_name = CollectionManager.getLoadedCollectionName();
    275275        String collection_directory_path = CollectionManager.getCollectionDirectoryPath(collection_name);
    276         String metadata_file_relative_path = RemoteGreenstoneServer.getPathRelativeToDirectory(metadata_file, collection_directory_path);
     276        String metadata_file_relative_path = Gatherer.remoteGreenstoneServer.getPathRelativeToDirectory(
     277                                                          metadata_file, collection_directory_path);
    277278        command_parts_list.add("-file");
    278279        command_parts_list.add(metadata_file_relative_path);
     
    345346        if (Gatherer.isGsdlRemote) {
    346347            Utility.delete(metadata_file.getParentFile());
    347             RemoteGreenstoneServer.downloadCollectionFile(CollectionManager.getLoadedCollectionName(), metadata_file.getParentFile());
     348            Gatherer.remoteGreenstoneServer.downloadCollectionFile(
     349                             CollectionManager.getLoadedCollectionName(), metadata_file.getParentFile());
    348350        }
    349351
  • gli/trunk/src/org/greenstone/gatherer/gui/GUIManager.java

    r16884 r17612  
    438438        remote_greenstone_server_progress_panel.setLayout(new BorderLayout());
    439439        remote_greenstone_server_progress_panel.add(remote_greenstone_server_progress_label, BorderLayout.WEST);
    440         remote_greenstone_server_progress_panel.add(RemoteGreenstoneServer.getProgressBar(), BorderLayout.CENTER);
     440        remote_greenstone_server_progress_panel.add(Gatherer.remoteGreenstoneServer.getProgressBar(), BorderLayout.CENTER);
    441441        content_pane.add(remote_greenstone_server_progress_panel, BorderLayout.SOUTH);
    442442        }
  • gli/trunk/src/org/greenstone/gatherer/gui/NewCollectionDetailsPrompt.java

    r14563 r17612  
    259259    // Remote collections that aren't shared have the user's username prefixed to the collection name
    260260    if (Gatherer.isGsdlRemote && personal_collection_button.isSelected()) {
    261         name_buffer = new StringBuffer(RemoteGreenstoneServer.getUsername() + "-" + name_buffer.toString());
     261        name_buffer = new StringBuffer(Gatherer.remoteGreenstoneServer.getUsername() + "-" + name_buffer.toString());
    262262    }
    263263
  • gli/trunk/src/org/greenstone/gatherer/gui/Preferences.java

    r17353 r17612  
    826826        Configuration.save();
    827827        if (Gatherer.isGsdlRemote && Gatherer.GS3 && site_changed ){
    828         RemoteGreenstoneServer.downloadCollectionConfigurations();
     828        Gatherer.remoteGreenstoneServer.downloadCollectionConfigurations();
    829829        }
    830830        // Refresh the GLI to account for the configuration changes
     
    956956            if (Gatherer.c_man.getCollection()!=null){
    957957            File lock_file = new File(Gatherer.c_man.getLoadedCollectionDirectoryPath() + "gli.lck");
    958             RemoteGreenstoneServer.deleteCollectionFile(Gatherer.c_man.getLoadedCollectionName(),lock_file);
     958            Gatherer.remoteGreenstoneServer.deleteCollectionFile(Gatherer.c_man.getLoadedCollectionName(),lock_file);
    959959            Gatherer.g_man.closeCurrentCollection();
    960960            }
    961961            Configuration.site_name=site;
    962             RemoteGreenstoneServer.set_remote_greenstone_server_authentication_to_null();
    963             RemoteGreenstoneServer.downloadCollectionConfigurations();
     962            Gatherer.remoteGreenstoneServer.set_remote_greenstone_server_authentication_to_null();
     963            Gatherer.remoteGreenstoneServer.downloadCollectionConfigurations();
    964964        }
    965965        }
  • gli/trunk/src/org/greenstone/gatherer/gui/ReplaceSrcDocWithHtmlPrompt.java

    r15163 r17612  
    272272        String collection_name = CollectionManager.getLoadedCollectionName();
    273273        String collection_directory_path = CollectionManager.getCollectionDirectoryPath(collection_name);
    274         String srcdoc_file_relative_path = RemoteGreenstoneServer.getPathRelativeToDirectory(
     274        String srcdoc_file_relative_path = Gatherer.remoteGreenstoneServer.getPathRelativeToDirectory(
    275275        this.srcdoc_files[fileNum], collection_directory_path); // preserves spaces in filename
    276276        command_parts_list.add("-file");
     
    382382            // download the generated html file from the server side to put it
    383383            // into the import directory on the client side
    384             RemoteGreenstoneServer.downloadCollectionFile(
     384            Gatherer.remoteGreenstoneServer.downloadCollectionFile(
    385385                          CollectionManager.getLoadedCollectionName(),
    386386                          new File(srcdoc_files[i].getParentFile(), htmlFile));
     
    389389            File assoc_folder = new File(srcdoc_files[i].getParentFile(), suffixlessFilename+"_files");
    390390            // If an associated_folder by such a name exists, download it
    391             if(RemoteGreenstoneServer.exists(CollectionManager.getLoadedCollectionName(), assoc_folder)) {
    392               RemoteGreenstoneServer.downloadCollectionFile(
     391            if(Gatherer.remoteGreenstoneServer.exists(CollectionManager.getLoadedCollectionName(), assoc_folder)) {
     392              Gatherer.remoteGreenstoneServer.downloadCollectionFile(
    393393                                    CollectionManager.getLoadedCollectionName(), assoc_folder);
    394394            }
Note: See TracChangeset for help on using the changeset viewer.