Changeset 7453
- Timestamp:
- 2004-05-27T10:12:08+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/Gatherer.java
r7342 r7453 85 85 // } 86 86 87 public class Gatherer {88 87 public class Gatherer 88 { 89 89 static public Hashtable authentications = new Hashtable(); 90 90 … … 97 97 public Dimension frame_size = null; 98 98 99 /** A temporary shared memory area to store HIndexes to speed up metadata.xml writing. */100 public Hashtable known_indexes = null;101 /** Legacy copy of the debug_ps. */102 public PrintStream debug_ps;103 99 /** All of the external applications that must exit before we close the Gatherer. */ 104 100 public Vector apps = new Vector(); 105 /** Messages that have been issued before we have anyway to show them, ie prior to Log initialization. */ 106 public Vector waiting_messages = new Vector(); 107 /** The manager in charge of remembering what file extension gets opened with what program. */ 101 /** A public reference to the FileAssociationManager. */ 108 102 static public FileAssociationManager assoc_man; 109 103 /** A public reference to the CollectionManager. */ … … 127 121 /** We are using the GLI for GS3 */ 128 122 static public boolean GS3 = false; 129 /** The name of the necessary environment variable to check for in the programs environment. */130 static public String KEY = "GSDLPATH";131 123 132 124 // feedback stuff … … 139 131 private GSDLSiteConfig gsdlsite_cfg = null; 140 132 private ExternalApplication server = null; 141 142 /** The name of the Gatherers configuration file. */143 static private String CONFIG_FILE_NAME = "gatherer.cfg";144 133 145 134 /** Magic to allow Enter to fire the default button. */ … … 210 199 Properties props = System.getProperties(); 211 200 props.list(debug); 212 // Legacy213 debug_ps = debug;214 201 } 215 202 catch(Exception error) { … … 336 323 // After the window has been made visible, check that it is in the correct place 337 324 // sometimes java places a window not in the correct place, 338 // but with an offset. If so, we work out what the offset is ]325 // but with an offset. If so, we work out what the offset is 339 326 // and change the desired location to take that into account 340 327 Point location = g_man.getLocation(); … … 349 336 // The 'after-display' triggers several events which don't occur until after the visual components are actually available on screen. Examples of these would be the various html renderings, as they can't happen offscreen. 350 337 g_man.afterDisplay(); 351 // Hide the splash. 338 339 // Hide the splash screen 352 340 splash.hide(); 353 341 splash.destroy(); … … 483 471 } 484 472 485 /** Retrieve a reference to the frame that any dialog boxes will appear relative to, as required by any MSMCaller or CDMCaller implementation.486 * @return A <strong>JFrame</strong>.487 * @see org.greenstone.gatherer.gui.GUIManager488 */489 /* private JFrame getFrame() {490 return g_man;491 } */492 493 /** Method to retrieve a reference to the metadata set manager class. This is then used to create the 'metadataset' commands in the collection configuration file.494 * @return A reference to the <Strong>MetadataSetManager</strong>.495 * @see org.greenstone.gatherer.collection.CollectionManager496 */497 /* private MetadataSetManager getMSM() {498 if(c_man != null && c_man.getCollection() != null && c_man.getCollection().msm != null) {499 return c_man.getCollection().msm;500 }501 return null;502 } */503 504 473 /** Used to 'spawn' a new child application when a file is double clicked. 505 474 * @param file The file to open … … 549 518 // Thanks to Walter Schatz from the java forums. 550 519 System.setProperty("java.util.prefs.syncInterval","2000000"); // One message every 600 hours! 551 552 520 553 521 // Override the exception handler with a new one which we can easily quiet the exceptions from. … … 864 832 // Now set the tooltip font to some fixed width font 865 833 UIManager.put("ToolTip.font", ttf); 866 834 } 867 835 868 836 /** Loads the configuration file if one exists. Otherwise it creates a new one. Currently uses serialization. … … 893 861 } 894 862 } 895 896 863 } 897 864 … … 1250 1217 } 1251 1218 1252 static public class GLIExceptionHandler {1253 public void handle(Throwable thrown) {1254 if(always_show_exceptions || debug != null) {1255 thrown.printStackTrace();1256 }1257 }1258 }1219 // static public class GLIExceptionHandler { 1220 // public void handle(Throwable thrown) { 1221 // if(always_show_exceptions || debug != null) { 1222 // thrown.printStackTrace(); 1223 // } 1224 // } 1225 // } 1259 1226 }
Note:
See TracChangeset
for help on using the changeset viewer.