Changeset 7991
- Timestamp:
- 2004-08-18T15:05:17+12:00 (20 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/Gatherer.java
r7923 r7991 41 41 import org.greenstone.gatherer.Configuration; 42 42 import org.greenstone.gatherer.GAuthenticator; 43 import org.greenstone.gatherer.cdm.CommandTokenizer;44 43 import org.greenstone.gatherer.collection.CollectionManager; 45 44 import org.greenstone.gatherer.feedback.ActionRecorderDialog; 46 45 import org.greenstone.gatherer.file.FileManager; 47 46 import org.greenstone.gatherer.file.FileAssociationManager; 48 import org.greenstone.gatherer.gui.Coloring;49 47 import org.greenstone.gatherer.gui.GUIManager; 50 48 import org.greenstone.gatherer.gui.ModalDialog; … … 52 50 import org.greenstone.gatherer.gui.URLField; 53 51 import 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;57 52 import org.greenstone.gatherer.util.GSDLSiteConfig; 58 53 import org.greenstone.gatherer.util.StaticStrings; 59 54 import org.greenstone.gatherer.util.Utility; 60 import sun.misc.*;55 // import sun.misc.*; 61 56 62 57 /** Containing the top-level "core" for the Gatherer, this class is the … … 1034 1029 1035 1030 /** 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 CTRLCHandler1037 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.CollectionManager1043 */1044 public void handle(Signal sig) {1045 if(!ignore) {1046 ignore = true;1047 // handle SIGINT1048 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 // } 1057 1052 1058 1053 private class PerlTest { -
trunk/gli/src/org/greenstone/gatherer/GathererApplet.java
r7961 r7991 36 36 37 37 import java.awt.*; 38 import java.awt.event.*;39 import java.io.*;40 import java.lang.*;41 import java.net.*;42 38 import java.util.*; 43 39 import javax.swing.*; 44 import javax.swing.plaf.*;45 import javax.swing.text.*;46 40 import org.greenstone.gatherer.Configuration; 47 import org.greenstone.gatherer.GAuthenticator;48 import org.greenstone.gatherer.cdm.CommandTokenizer;49 import org.greenstone.gatherer.collection.CollectionManager;50 41 import 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;54 42 import org.greenstone.gatherer.gui.GUIManager; 55 import org.greenstone.gatherer.gui.ModalDialog;56 43 import 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;64 44 import org.greenstone.gatherer.util.Utility; 65 import sun.misc.*;66 45 67 46 public class GathererApplet extends JApplet implements ActionListener -
trunk/gli/src/org/greenstone/gatherer/GathererProg.java
r7738 r7991 27 27 package org.greenstone.gatherer; 28 28 29 /**************************************************************************************30 * Written: ??/??/0231 * Revised: ??/??/02 - Commented32 * ??/??/03 - Added support for local library server33 * 20/07/03 - Rewrote argument parsing so that spaces no longer cause GLI to die. Also added time out when starting local library.34 **************************************************************************************/35 29 36 //import com.l2fprod.gui.*;37 //import com.l2fprod.gui.plaf.skin.*;38 //import com.l2fprod.util.*;39 30 import java.awt.*; 40 import java.awt.event.*;41 import java.io.*;42 import java.lang.*;43 import java.net.*;44 31 import java.util.*; 45 32 import 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;52 33 import 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;56 34 import org.greenstone.gatherer.gui.GUIManager; 57 import org.greenstone.gatherer.gui.ModalDialog;58 35 import 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.*;68 36 69 37 /** Containing the main() method for the Gatherer, this class is the … … 92 60 public class GathererProg 93 61 { 94 95 62 /** The entry point into the Gatherer. Parses arguments. 96 63 * @param args A collection of arguments that may include: initial screen size, dictionary, path to the GSDL etc. … … 102 69 * @see org.greenstone.gatherer.Gatherer 103 70 * @see org.greenstone.gatherer.Gatherer 104 * @see org.greenstone.gatherer.gui.Splash105 * @see org.greenstone.gatherer.util.StaticStrings106 71 */ 107 72 static public void main(String[] args) {
Note:
See TracChangeset
for help on using the changeset viewer.