Ignore:
Timestamp:
2009-05-20T18:50:16+12:00 (15 years ago)
Author:
ak19
Message:

Put back and corrected the GLI code that was recently reverted for dealing with a GSI that's started independently of GLI (via gs2-server.sh) and which has started the server or not yet autoentered the library. Now it works for Linux.

File:
1 edited

Legend:

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

    r19513 r19544  
    3535import javax.swing.*;
    3636import org.greenstone.gatherer.Configuration;
     37import org.greenstone.gatherer.Dictionary;
    3738import org.greenstone.gatherer.Gatherer;
    3839import org.greenstone.gatherer.collection.CollectionManager;
     
    134135        Gatherer.c_man.saveCollection();
    135136       
    136         configureHomeURL();
     137        if(LocalLibraryServer.isURLPending()) {
     138        // Remind the user to press Enter Library, and return from this method
     139        JOptionPane.showMessageDialog(Gatherer.g_man,
     140                          Dictionary.get("General.LLS_Not_Started"),
     141                          Dictionary.get("General.LLS_Not_Started_Title"),
     142                          JOptionPane.ERROR_MESSAGE);
     143        return;
     144       
     145        } else {
     146        configureHomeURL();
     147        }
    137148       
    138149        if (Gatherer.GS3) {
Note: See TracChangeset for help on using the changeset viewer.