Changeset 10239


Ignore:
Timestamp:
2005-07-13T11:44:07+12:00 (19 years ago)
Author:
mdewsnip
Message:

Added the "isApplet" variable to allow the GLI to use a remote Greenstone server running stand-alone as well as an applet.

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
4 edited

Legend:

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

    r10013 r10239  
    8787    static public boolean GS3 = false;
    8888
     89    static public boolean isApplet = false;
    8990    static public boolean isGsdlRemote = false;
    9091    static public String cgiBase = "";
     
    222223        missingImageMagick();
    223224        }
    224        
     225
    225226        if (Gatherer.isGsdlRemote) {
    226227        DebugStream.println("Not checking for perl path/exe");
     
    433434    }
    434435
    435     if(apps.size() == 0) {
    436         if (!Gatherer.isGsdlRemote) {
     436    // Make sure we haven't started up any processes that are still running
     437    if (apps.size() == 0) {
     438        if (Gatherer.isApplet) {
     439        // If we're running as an applet we don't actually quit, just delete the main GLI window
     440        g_man = null;
     441        }
     442        else {
     443        // This is the end...
    437444        System.exit(0);
    438         }
    439         else {
    440         g_man = null;
    441445        }
    442446    }
  • trunk/gli/src/org/greenstone/gatherer/GathererApplet.java

    r10219 r10239  
    137137        gatherer.feedback_dialog = dlg;
    138138    }
    139    
     139
     140    Gatherer.isApplet = true;
    140141    Gatherer.isGsdlRemote = true;
    141142    Gatherer.cgiBase = cgi_base;
  • trunk/gli/src/org/greenstone/gatherer/gui/ExplodeMetadataPrompt.java

    r9755 r10239  
    228228    {
    229229    if (Gatherer.isGsdlRemote) {
    230         // what here??
     230        // !! TO DO
    231231        return -1;
    232232    }
  • trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java

    r10016 r10239  
    416416
    417417    if (!Gatherer.c_man.ready() || design_pane.canSave()) {
    418         if (Gatherer.isGsdlRemote) {           
     418        // If we're running as an applet we don't actually quit, just hide the main GLI window
     419        if (Gatherer.isApplet) {
    419420        // consider saving???
    420421        setVisible(false);
Note: See TracChangeset for help on using the changeset viewer.