Changeset 6999 for trunk/gli


Ignore:
Timestamp:
2004-03-10T10:36:33+13:00 (20 years ago)
Author:
kjdon
Message:

made the clearCache methods static so they can be called when there is no collection loaded

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

Legend:

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

    r6995 r6999  
    116116    }
    117117
    118     public boolean clearClassifierCache() {
     118    public static boolean clearClassifierCache() {
    119119
    120120    Gatherer.println("deleting classifiers.dat");
  • trunk/gli/src/org/greenstone/gatherer/cdm/PlugInManager.java

    r6995 r6999  
    101101    }
    102102
    103     public boolean clearPlugInCache() {
     103    public static boolean clearPlugInCache() {
    104104
    105105    Gatherer.println("deleting plugins.dat");
     
    483483        }
    484484        progress.dispose();
     485        progress.destroy();
     486        progress = null;
    485487    }
    486488    }
  • trunk/gli/src/org/greenstone/gatherer/gui/Preferences.java

    r6996 r6999  
    3737import org.greenstone.gatherer.Dictionary;
    3838import org.greenstone.gatherer.Gatherer;
     39import org.greenstone.gatherer.cdm.ClassifierManager;
    3940import org.greenstone.gatherer.cdm.LanguageManager;
     41import org.greenstone.gatherer.cdm.PlugInManager;
    4042import org.greenstone.gatherer.checklist.CheckList;
    4143import org.greenstone.gatherer.checklist.Entry;
     
    655657        Gatherer.config.setLocale("general.locale", Configuration.GENERAL_SETTING, ((DictionaryEntry)language_combobox.getSelectedItem()).getLocale());
    656658        // delete the plugins and classifiers.dat files
    657         Gatherer.c_man.getCollection().cdm.plugin_manager.clearPlugInCache();
    658         Gatherer.c_man.getCollection().cdm.classifier_manager.clearClassifierCache();
     659        PlugInManager.clearPlugInCache();
     660        ClassifierManager.clearClassifierCache();
    659661        }
    660662        //Gatherer.config.setInt("general.max_folder_depth", Configuration.COLLECTION_SPECIFIC, ((Integer)recursion_depth_spinner.getValue()).intValue());
Note: See TracChangeset for help on using the changeset viewer.