Changeset 7660


Ignore:
Timestamp:
2004-06-29T14:59:10+12:00 (20 years ago)
Author:
kjdon
Message:

removed the clear cache button from preferences

File:
1 edited

Legend:

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

    r7639 r7660  
    7070    private JButton apply_button;
    7171    private JButton cancel_button;
    72     private JButton clear_cache_button;
    7372    private JButton ok_button;
    7473    private JCheckBox show_file_size_checkbox;
     
    296295    Dictionary.registerTooltip(proxy_port_field, "Preferences.Connection.Proxy_Port_Tooltip");
    297296
    298     /** @todo - add to dictionary. Bet you're getting sick of these by now! */
    299     clear_cache_button = new GLIButton("Preferences.Connection.Clear_Cache");
    300 
    301297    // Connection
    302298    use_proxy_checkbox.addActionListener(new UseProxyListener());
    303     clear_cache_button.addActionListener(new ClearCacheListener());
    304299    if (Gatherer.GS3) {
    305300        site_combobox.addActionListener(new SiteComboboxListener());
     
    342337    connection_pane.add(proxy_host_pane);
    343338    connection_pane.add(proxy_port_pane);
    344     if(Gatherer.config.get(StaticStrings.WORKFLOW_MIRROR, true)) {
    345         connection_pane.add(clear_cache_button);
    346     }
    347339
    348340    return connection_pane;
     
    789781    }
    790782
    791     private class ClearCacheListener
    792     implements ActionListener {
    793     public void actionPerformed(ActionEvent event) {
    794         // Retrieve the cache folder and delete it.
    795         Utility.delete(Utility.getCacheDir());
    796 
    797         // ...and refresh the node in the workspace tree to show it's all gone
    798         Gatherer.g_man.refreshWorkspaceTree(WorkspaceTree.DOWNLOADED_FILES_CHANGED);
    799     }
    800     }
    801 
    802783    private class DictionaryEntry
    803784    implements Comparable {
Note: See TracChangeset for help on using the changeset viewer.