Changeset 9116


Ignore:
Timestamp:
2005-02-18T17:16:49+13:00 (19 years ago)
Author:
mdewsnip
Message:

Now a bit happier if it is run before the GLI is run (ie. no config.xml file is created).

File:
1 edited

Legend:

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

    r9103 r9116  
    5959import org.greenstone.gatherer.Dictionary;
    6060import org.greenstone.gatherer.GetOpt;
    61 import org.greenstone.gatherer.cdm.*;
    6261import org.greenstone.gatherer.gui.GComboBox;
    6362import org.greenstone.gatherer.gui.GLIButton;
     
    140139    //It is a centralized manager for all popups, then we use evt.Source() and determine where the
    141140    //event was performed
    142     private PopupListener popupListener = new PopupListener(this);
     141    private PopupListener popupListener = null;
    143142 
    144143    /** A tree that represents the current metadata sets associated with this collection. */
     
    163162    }
    164163
    165     // Load configuration file
    166     try {
    167            
    168         config = new Configuration(go.gsdl_path, null, null);
    169     }
    170     catch (Exception exception) {
    171         DebugStream.printStackTrace(exception);
    172     }
    173164        GEMS GEMS;
    174165    GEMS = new GEMS(go.gsdl_path);
     
    182173    public GEMS(String gsdl_path)
    183174    {
     175    //Load configuration file
     176    this.self = this;
     177    Utility.initImages(this);
     178    config = new Configuration(gsdl_path, null, null);
     179   
    184180    this.dialog_options = new String[2];
    185181    this.screen_size = config.screen_size;
    186     this.self = this;
    187182        this.gsdl_path = gsdl_path;
    188183       
    189184    // Initialise some common images
    190     Utility.initImages(this);
     185    popupListener = new PopupListener(this);
    191186
    192187    // Load help
     
    16371632        cancel_button.setMnemonic(KeyEvent.VK_C);
    16381633        Dictionary.setBoth(cancel_button, "General.Cancel", "General.Pure_Cancel_Tooltip");
    1639         //TextFieldEnabler ok_button_enabler = new TextFieldEnabler(ok_button);
    16401634
    16411635        // Connection
Note: See TracChangeset for help on using the changeset viewer.