Ignore:
Timestamp:
2009-05-21T16:44:28+12:00 (15 years ago)
Author:
ak19
Message:

Fixed up loose ends: restarting an external server - just as relaunching a server from within GLI - will work with the previewbutton.

File:
1 edited

Legend:

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

    r19544 r19547  
    9191    // !! Don't like this here
    9292    LocalLibraryServer.checkServerRunning();
     93    if(LocalLibraryServer.isURLPending()) {
     94        // Remind the user to press Enter Library, and return from this method
     95        JOptionPane.showMessageDialog(Gatherer.g_man,
     96                      Dictionary.get("General.LLS_Not_Started"),
     97                      Dictionary.get("General.LLS_Not_Started_Title"),
     98                      JOptionPane.ERROR_MESSAGE);
     99        preview_address = null;
     100        return;   
     101    }
    93102   
    94103    // FLI or GLI for GS2 case (no library_url)
     
    135144        Gatherer.c_man.saveCollection();
    136145       
    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         }
     146        configureHomeURL();
    148147       
    149148        if (Gatherer.GS3) {
     
    152151        Gatherer.configGS3Server(Configuration.site_name, ServletConfiguration.ADD_COMMAND + Gatherer.c_man.getLoadedCollectionName());
    153152        }
    154         Gatherer.spawnBrowser(preview_address);
     153        if(preview_address != null) {
     154        Gatherer.spawnBrowser(preview_address);
     155        }
    155156
    156157    }
Note: See TracChangeset for help on using the changeset viewer.