Changeset 7991


Ignore:
Timestamp:
2004-08-18T15:05:17+12:00 (20 years ago)
Author:
mdewsnip
Message:

Removed some dead code.

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

Legend:

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

    r7923 r7991  
    4141import org.greenstone.gatherer.Configuration;
    4242import org.greenstone.gatherer.GAuthenticator;
    43 import org.greenstone.gatherer.cdm.CommandTokenizer;
    4443import org.greenstone.gatherer.collection.CollectionManager;
    4544import org.greenstone.gatherer.feedback.ActionRecorderDialog;
    4645import org.greenstone.gatherer.file.FileManager;
    4746import org.greenstone.gatherer.file.FileAssociationManager;
    48 import org.greenstone.gatherer.gui.Coloring;
    4947import org.greenstone.gatherer.gui.GUIManager;
    5048import org.greenstone.gatherer.gui.ModalDialog;
     
    5250import org.greenstone.gatherer.gui.URLField;
    5351import org.greenstone.gatherer.gui.WarningDialog;
    54 import org.greenstone.gatherer.msm.MDSTest;
    55 import org.greenstone.gatherer.msm.MetadataSetManager;
    56 import org.greenstone.gatherer.util.ArrayTools;
    5752import org.greenstone.gatherer.util.GSDLSiteConfig;
    5853import org.greenstone.gatherer.util.StaticStrings;
    5954import org.greenstone.gatherer.util.Utility;
    60 import sun.misc.*;
     55// import sun.misc.*;
    6156
    6257/** Containing the top-level "core" for the Gatherer, this class is the
     
    10341029
    10351030    /** This class is intented to detect a specific SIGNAL, in this case SIGINT, and exit properly, rather than letting the Gatherer be interrupted which has the potential to leave erroneous lock files. */
    1036     private class CTRLCHandler
    1037     implements SignalHandler {
    1038     /** <i>true</i> if we ignore any other signals we receive, most likely because we are already dealing with one, <i>false</i> otherwise. */
    1039     private boolean ignore = false;
    1040     /** The method called by the system to inform us a signal has occured.
    1041      * @param sig The <strong>Signal</strong> itself.
    1042      * @see org.greenstone.gatherer.collection.CollectionManager
    1043      */
    1044     public void handle(Signal sig) {
    1045         if(!ignore) {
    1046         ignore = true;
    1047         // handle SIGINT
    1048         System.out.println("Caught Ctrl-C...");
    1049         if(c_man != null && c_man.ready()) {
    1050             c_man.closeCollection();
    1051         }
    1052         exit();
    1053         ignore = false;
    1054         }
    1055     }
    1056     }
     1031//      private class CTRLCHandler
     1032//      implements SignalHandler {
     1033//      /** <i>true</i> if we ignore any other signals we receive, most likely because we are already dealing with one, <i>false</i> otherwise. */
     1034//      private boolean ignore = false;
     1035//      /** The method called by the system to inform us a signal has occured.
     1036//       * @param sig The <strong>Signal</strong> itself.
     1037//       * @see org.greenstone.gatherer.collection.CollectionManager
     1038//       */
     1039//      public void handle(Signal sig) {
     1040//          if(!ignore) {
     1041//          ignore = true;
     1042//          // handle SIGINT
     1043//          System.out.println("Caught Ctrl-C...");
     1044//          if(c_man != null && c_man.ready()) {
     1045//              c_man.closeCollection();
     1046//          }
     1047//          exit();
     1048//          ignore = false;
     1049//          }
     1050//      }
     1051//      }
    10571052
    10581053    private class PerlTest {
  • trunk/gli/src/org/greenstone/gatherer/GathererApplet.java

    r7961 r7991  
    3636
    3737import java.awt.*;
    38 import java.awt.event.*;
    39 import java.io.*;
    40 import java.lang.*;
    41 import java.net.*;
    4238import java.util.*;
    4339import javax.swing.*;
    44 import javax.swing.plaf.*;
    45 import javax.swing.text.*;
    4640import org.greenstone.gatherer.Configuration;
    47 import org.greenstone.gatherer.GAuthenticator;
    48 import org.greenstone.gatherer.cdm.CommandTokenizer;
    49 import org.greenstone.gatherer.collection.CollectionManager;
    5041import org.greenstone.gatherer.feedback.ActionRecorderDialog;
    51 import org.greenstone.gatherer.file.FileManager;
    52 import org.greenstone.gatherer.file.FileAssociationManager;
    53 import org.greenstone.gatherer.gui.Coloring;
    5442import org.greenstone.gatherer.gui.GUIManager;
    55 import org.greenstone.gatherer.gui.ModalDialog;
    5643import org.greenstone.gatherer.gui.Splash;
    57 import org.greenstone.gatherer.gui.URLField;
    58 import org.greenstone.gatherer.gui.WarningDialog;
    59 import org.greenstone.gatherer.msm.MDSTest;
    60 import org.greenstone.gatherer.msm.MetadataSetManager;
    61 import org.greenstone.gatherer.util.ArrayTools;
    62 import org.greenstone.gatherer.util.GSDLSiteConfig;
    63 import org.greenstone.gatherer.util.StaticStrings;
    6444import org.greenstone.gatherer.util.Utility;
    65 import sun.misc.*;
    6645
    6746public class GathererApplet extends JApplet implements ActionListener
  • trunk/gli/src/org/greenstone/gatherer/GathererProg.java

    r7738 r7991  
    2727package org.greenstone.gatherer;
    2828
    29 /**************************************************************************************
    30  * Written:      ??/??/02
    31  * Revised:      ??/??/02 - Commented
    32  *               ??/??/03 - Added support for local library server
    33  *               20/07/03 - Rewrote argument parsing so that spaces no longer cause GLI to die. Also added time out when starting local library.
    34  **************************************************************************************/
    3529
    36 //import com.l2fprod.gui.*;
    37 //import com.l2fprod.gui.plaf.skin.*;
    38 //import com.l2fprod.util.*;
    3930import java.awt.*;
    40 import java.awt.event.*;
    41 import java.io.*;
    42 import java.lang.*;
    43 import java.net.*;
    4431import java.util.*;
    4532import javax.swing.*;
    46 import javax.swing.plaf.*;
    47 import javax.swing.text.*;
    48 import org.greenstone.gatherer.Configuration;
    49 import org.greenstone.gatherer.GAuthenticator;
    50 import org.greenstone.gatherer.cdm.CommandTokenizer;
    51 import org.greenstone.gatherer.collection.CollectionManager;
    5233import org.greenstone.gatherer.feedback.ActionRecorderDialog;
    53 import org.greenstone.gatherer.file.FileManager;
    54 import org.greenstone.gatherer.file.FileAssociationManager;
    55 import org.greenstone.gatherer.gui.Coloring;
    5634import org.greenstone.gatherer.gui.GUIManager;
    57 import org.greenstone.gatherer.gui.ModalDialog;
    5835import org.greenstone.gatherer.gui.Splash;
    59 import org.greenstone.gatherer.gui.URLField;
    60 import org.greenstone.gatherer.gui.WarningDialog;
    61 import org.greenstone.gatherer.msm.MDSTest;
    62 import org.greenstone.gatherer.msm.MetadataSetManager;
    63 import org.greenstone.gatherer.util.ArrayTools;
    64 import org.greenstone.gatherer.util.GSDLSiteConfig;
    65 import org.greenstone.gatherer.util.StaticStrings;
    66 import org.greenstone.gatherer.util.Utility;
    67 import sun.misc.*;
    6836
    6937/** Containing the main() method for the Gatherer, this class is the
     
    9260public class GathererProg
    9361{
    94 
    9562    /** The entry point into the Gatherer. Parses arguments.
    9663     * @param args A collection of arguments that may include: initial screen size, dictionary, path to the GSDL etc.
     
    10269     * @see org.greenstone.gatherer.Gatherer
    10370     * @see org.greenstone.gatherer.Gatherer
    104      * @see org.greenstone.gatherer.gui.Splash
    105      * @see org.greenstone.gatherer.util.StaticStrings
    10671     */
    10772    static public void main(String[] args) {
Note: See TracChangeset for help on using the changeset viewer.