Changeset 8621


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

Removed some dead code.

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

Legend:

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

    r8620 r8621  
    5151import org.greenstone.gatherer.util.StaticStrings;
    5252import org.greenstone.gatherer.util.Utility;
    53 // import sun.misc.*;
     53
    5454
    5555/** Containing the top-level "core" for the Gatherer, this class is the
     
    6262 * @version 2.3
    6363 */
    64 
    65 // How to catch All Exceptions including those from the AWT Event thread.
    66 // Step 1: register a handler class in your main()
    67 //
    68 // System.setProperty("sun.awt.exception.handler", "YourHandler");
    69 //
    70 // Step 2: implement your handler class.
    71 //
    72 // public class YourHandler {
    73 //   public void handle(Throwable thrown) {
    74 //     eat the exception without dumping to the console.
    75 //   }
    76 // }
    77 
    7864public class Gatherer
    7965{
     
    8268    static final private String SKIN_DEFINITION_FILE = "lib/greenaqua/greenaqua.xml";
    8369
    84     static public boolean always_show_exceptions = true;
    8570    /** Has the exit flag been set? <i>true</i> if so, <i>false</i> otherwise. */
    8671    public boolean exit = false;
     
    736721    private String url = null;
    737722    private String[] commands = null;
    738     /** Constructor.
    739      * @param command The initial command <strong>String</strong>.
    740      */
    741 //      public BrowserApplication(String command) {
    742 //          this.command = command;
    743 //      }
    744723
    745724    public BrowserApplication(String command, String url) {
  • 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.