Ignore:
Timestamp:
2004-11-23T09:36:24+13:00 (19 years ago)
Author:
mdewsnip
Message:

Removed some dead code.

File:
1 edited

Legend:

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

    r8620 r8621  
    4444 * @version 2.3
    4545 */
    46 
    47 // How to catch All Exceptions including those from the AWT Event thread.
    48 // Step 1: register a handler class in your main()
    49 //
    50 // System.setProperty("sun.awt.exception.handler", "YourHandler");
    51 //
    52 // Step 2: implement your handler class.
    53 //
    54 // public class YourHandler {
    55 //   public void handle(Throwable thrown) {
    56 //     eat the exception without dumping to the console.
    57 //   }
    58 // }
    59 
    6046public class GathererProg
    6147{
     
    7662    System.setProperty("java.util.prefs.syncInterval","2000000");
    7763    // => results in One message every 600 hours!
    78 
    79     // Override the exception handler with a new one which we can
    80     // easily quiet the exceptions from.
    81     // System.setProperty("sun.awt.exception.handler", "GLIExceptionHandler");
    8264
    8365    // Ensure platform specific LAF
     
    11597    gatherer.run(size,splash,g_man);
    11698    }
    117 
    118 //      static public class GLIExceptionHandler {
    119 //      public void handle(Throwable thrown) {
    120 //          if(always_show_exceptions || debug != null) {
    121 //          thrown.printStackTrace();
    122 //          }
    123 //      }
    124 //      }
    12599}
Note: See TracChangeset for help on using the changeset viewer.