Ignore:
Timestamp:
2006-09-21T14:42:34+12:00 (18 years ago)
Author:
mdewsnip
Message:

All instances of saving the collection now go through CollectionManager.saveCollection().

Location:
trunk/gli/src/org/greenstone/gatherer/gui
Files:
3 edited

Legend:

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

    r12804 r12805  
    101101    }
    102102
    103     public void gainFocus() {
     103
     104    public void gainFocus()
     105    {
    104106    if (cdm == null && Gatherer.c_man.ready()) {
    105107        // Retrieve the new config manager.
     
    109111        view.gainFocus();
    110112    }
    111 
    112     }
    113 
    114     public void loseFocus() {
    115     if (cdm != null) {
    116         cdm.save();
    117     }
     113    }
     114
     115
     116    public void loseFocus()
     117    {
    118118    if (view != null) {
    119119        view.loseFocus();
    120120    }
    121 
    122     }
     121    if (cdm != null) {
     122        Gatherer.c_man.saveCollection();
     123    }
     124    }
     125
    123126
    124127    public void destroy() {
    125128    tree = null;
    126129    view = null;
    127 
    128130    }
    129131
  • trunk/gli/src/org/greenstone/gatherer/gui/GUIManager.java

    r12739 r12805  
    136136    }
    137137
    138  
    139 
    140     public void windowGainedFocus(WindowEvent e) {
    141     //System.out.println("JPanel windowGainedFocus.");
    142     }
    143 
    144     public void windowLostFocus(WindowEvent e) {
    145         //System.out.println("JPanel windowLostFocus.");
    146 
     138
     139    public void windowGainedFocus(WindowEvent e)
     140    {
     141    }
     142
     143
     144    public void windowLostFocus(WindowEvent e)
     145    {
     146    // Save the loaded collection
    147147    if (Gatherer.c_man != null && Gatherer.c_man.ready() && Gatherer.c_man.getCollection().cdm != null) {
    148         Gatherer.c_man.getCollection().cdm.save();
    149     }
    150     //Gatherer.g_man.design_pane.saveConfiguration();
    151    
    152     }
    153  
     148        Gatherer.c_man.saveCollection();
     149    }
     150    }
     151
    154152
    155153    private class GLIGUIFocusListener
  • trunk/gli/src/org/greenstone/gatherer/gui/PreviewButton.java

    r12116 r12805  
    120120
    121121    public void actionPerformed(ActionEvent event) {
    122         Gatherer.c_man.getCollection().cdm.save(); // save the config file just in case
     122        Gatherer.c_man.saveCollection();
    123123       
    124124        configureHomeURL();
Note: See TracChangeset for help on using the changeset viewer.