Changeset 7453 for trunk/gli


Ignore:
Timestamp:
2004-05-27T10:12:08+12:00 (20 years ago)
Author:
mdewsnip
Message:

Removed some unused variables and functions.

File:
1 edited

Legend:

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

    r7342 r7453  
    8585// }
    8686
    87 public class Gatherer {
    88 
     87public class Gatherer
     88{
    8989    static public Hashtable authentications = new Hashtable();
    9090
     
    9797    public Dimension frame_size = null;
    9898
    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;
    10399    /** All of the external applications that must exit before we close the Gatherer. */
    104100    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. */
    108102    static public FileAssociationManager assoc_man;
    109103    /** A public reference to the CollectionManager. */
     
    127121    /** We are using the GLI for GS3 */
    128122    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";
    131123
    132124    // feedback stuff
     
    139131    private GSDLSiteConfig gsdlsite_cfg = null;
    140132    private ExternalApplication server = null;
    141 
    142     /** The name of the Gatherers configuration file. */
    143     static private String CONFIG_FILE_NAME = "gatherer.cfg";
    144133
    145134    /** Magic to allow Enter to fire the default button. */
     
    210199        Properties props = System.getProperties();
    211200        props.list(debug);
    212         // Legacy
    213         debug_ps = debug;
    214201        }
    215202        catch(Exception error) {
     
    336323        // After the window has been made visible, check that it is in the correct place
    337324        // 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
    339326        // and change the desired location to take that into account
    340327        Point location = g_man.getLocation();
     
    349336        // 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.
    350337        g_man.afterDisplay();
    351         // Hide the splash.
     338
     339        // Hide the splash screen
    352340        splash.hide();
    353341        splash.destroy();
     
    483471    }
    484472
    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.GUIManager
    488      */
    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.CollectionManager
    496      */
    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 
    504473    /** Used to 'spawn' a new child application when a file is double clicked.
    505474     * @param file The file to open
     
    549518    // Thanks to Walter Schatz from the java forums.
    550519    System.setProperty("java.util.prefs.syncInterval","2000000"); // One message every 600 hours!
    551 
    552520
    553521    // Override the exception handler with a new one which we can easily quiet the exceptions from.
     
    864832    // Now set the tooltip font to some fixed width font
    865833    UIManager.put("ToolTip.font", ttf);
    866     }
     834    }
    867835
    868836    /** Loads the configuration file if one exists. Otherwise it creates a new one. Currently uses serialization.
     
    893861        }
    894862    }
    895 
    896863    }
    897864
     
    12501217    }
    12511218
    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//      }
    12591226}
Note: See TracChangeset for help on using the changeset viewer.