Changeset 10517
- Timestamp:
- 2005-08-16T12:38:10+12:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/Gatherer.java
r10461 r10517 73 73 74 74 /** All of the external applications that must exit before we close the Gatherer. */ 75 publicVector apps = new Vector();75 static private Vector apps = new Vector(); 76 76 static private String non_standard_collect_directory_path = null; 77 77 static public String open_collection_file_path = null; … … 88 88 static private boolean g_man_built = false; 89 89 90 /** A static reference to ourselves. */91 static public Gatherer self;92 90 /** We are using the GLI for GS3 */ 93 91 static public boolean GS3 = false; … … 120 118 public Gatherer(String[] args) 121 119 { 122 this.self = this;123 120 JarTools.initialise(this); 124 121 … … 468 465 * @see org.greenstone.gatherer.gui.GUIManager 469 466 */ 470 public void exit()467 static public void exit() 471 468 { 472 469 System.err.println("In Gatherer.exit()..."); … … 629 626 * @see org.greenstone.gatherer.Gatherer.ExternalApplication 630 627 */ 631 public void spawnApplication(File file) {628 static public void spawnApplication(File file) { 632 629 String [] commands = assoc_man.getCommand(file); 633 630 if(commands != null) { … … 642 639 643 640 644 public void spawnApplication(String command)641 static public void spawnApplication(String command) 645 642 { 646 643 ExternalApplication app = new ExternalApplication(command); … … 654 651 * @see org.greenstone.gatherer.Gatherer.BrowserApplication 655 652 */ 656 public void spawnBrowser(String url) {653 static public void spawnBrowser(String url) { 657 654 String command = assoc_man.getBrowserCommand(url); 658 655 if (command != null) { … … 766 763 767 764 /** This private class contains an instance of an external application running within a JVM shell. It is important that this process sits in its own thread, but its more important that when we exit the Gatherer we don't actually System.exit(0) the Gatherer object until the user has volunteerily ended all of these child processes. Otherwise when we quit the Gatherer any changes the users may have made in external programs will be lost and the child processes are automatically deallocated. */ 768 private class ExternalApplication765 static private class ExternalApplication 769 766 extends Thread { 770 767 private Process process = null; … … 827 824 } 828 825 /** This private class contains an instance of an external application running within a JVM shell. It is important that this process sits in its own thread, but its more important that when we exit the Gatherer we don't actually System.exit(0) the Gatherer object until the user has volunteerily ended all of these child processes. Otherwise when we quit the Gatherer any changes the users may have made in external programs will be lost and the child processes are automatically deallocated. */ 829 private class BrowserApplication826 static private class BrowserApplication 830 827 extends Thread { 831 828 private Process process = null; -
trunk/gli/src/org/greenstone/gatherer/LocalLibraryServer.java
r8629 r10517 129 129 // Spawn local library server process 130 130 String local_library_server_command = local_library_server_file.getAbsolutePath() + " " + gsdlsite_cfg_file.getSiteConfigFilename(); 131 Gatherer.s elf.spawnApplication(local_library_server_command);131 Gatherer.spawnApplication(local_library_server_command); 132 132 133 133 // Wait until program has started, by reloading and checking the URL field -
trunk/gli/src/org/greenstone/gatherer/file/FileManager.java
r10511 r10517 153 153 } 154 154 155 Gatherer.s elf.spawnApplication(file);155 Gatherer.spawnApplication(file); 156 156 } 157 157 -
trunk/gli/src/org/greenstone/gatherer/gui/CreatePane.java
r10460 r10517 794 794 Gatherer.c_man.getCollection().cdm.save(); // save the config file just in case 795 795 configureHomeURL(); 796 Gatherer.s elf.spawnBrowser(homepage);796 Gatherer.spawnBrowser(homepage); 797 797 798 798 } -
trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java
r10396 r10517 439 439 // If we're running as an applet we don't quit here (we quit when the browser calls GathererApplet.destroy()) 440 440 if (!Gatherer.isApplet) { 441 Gatherer. self.exit();441 Gatherer.exit(); 442 442 } 443 443 }
Note:
See TracChangeset
for help on using the changeset viewer.