Changeset 12225 for trunk/gli/src/org


Ignore:
Timestamp:
2006-07-14T10:03:04+12:00 (18 years ago)
Author:
davidb
Message:

Instead of GLI saying it needs to restart when the language interface has changed,
it now exits (having gone through the usual routine that saves the session etc)
with level 2. This is then used by gli.sh/gli.bat to loop around again and
relaunch GLI. Any other exit status, and gli.sh/gli.bat stops as before.

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

Legend:

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

    r12040 r12225  
    496496     * @see org.greenstone.gatherer.gui.GUIManager
    497497     */
    498     static public void exit()
     498    static public void exit(int exit_status)
    499499    {
    500500    DebugStream.println("In Gatherer.exit()...");
     
    529529        if (!Gatherer.isApplet) {
    530530        // This is the end...
    531         System.exit(0);
     531        System.exit(exit_status);
    532532        }
    533533    }
     
    538538    }
    539539
     540    static public void exit()
     541    {
     542    exit(0);
     543    }
    540544
    541545    /** Returns the path of the Greenstone "collect" directory. */
  • trunk/gli/src/org/greenstone/gatherer/gui/Preferences.java

    r12118 r12225  
    792792        self.dispose();
    793793        }
     794
     795        if (restart_required) {
     796        Gatherer.exit(2);
     797        }
    794798    }
    795799    }
Note: See TracChangeset for help on using the changeset viewer.