- Timestamp:
- 2004-01-27T16:35:34+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/Preferences.java
r6567 r6622 56 56 private JButton apply_button; 57 57 private JButton cancel_button; 58 private JButton clear_cache_button; 58 59 private JButton ok_button; 59 60 private JCheckBox show_file_size_checkbox; … … 208 209 Dictionary.registerTooltip(proxy_port_field, "Preferences.Connection.Proxy_Port_Tooltip"); 209 210 211 /** @todo - add to dictionary. Bet you're getting sick of these by now! */ 212 clear_cache_button = new GLIButton("Preferences.Connection.Clear_Cache"); 213 210 214 // Connection 211 215 use_proxy_checkbox.addActionListener(new UseProxyListener()); 216 clear_cache_button.addActionListener(new ClearCacheListener()); 212 217 213 218 // Layout … … 235 240 connection_pane.add(proxy_host_pane); 236 241 connection_pane.add(proxy_port_pane); 242 if(Gatherer.config.get(StaticStrings.WORKFLOW_MIRROR, true)) { 243 connection_pane.add(clear_cache_button); 244 } 237 245 238 246 return connection_pane; … … 717 725 } 718 726 727 private class ClearCacheListener 728 implements ActionListener { 729 public void actionPerformed(ActionEvent event) { 730 // Retrieve the cache folder and delete it. 731 Utility.delete(Utility.getCacheDir()); 732 } 733 } 734 719 735 private class DictionaryEntry 720 736 implements Comparable {
Note:
See TracChangeset
for help on using the changeset viewer.