- Timestamp:
- 2004-11-25T15:04:45+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/PluginManager.java
r8650 r8670 105 105 106 106 DebugStream.println("deleting plugins.dat"); 107 File plugin_file = new File(Utility.getGLIUserFolder() +"plugins.dat");107 File plugin_file = new File(Utility.getGLIUserFolder(), "plugins.dat"); 108 108 if (plugin_file.exists()) { 109 109 return Utility.delete(plugin_file); … … 332 332 private void savePlugins() { 333 333 try { 334 FileOutputStream file = new FileOutputStream(Utility.getGLIUserFolder() + "plugins.dat"); 334 File plugins_dat_file = new File(Utility.getGLIUserFolder(), "plugins.dat"); 335 FileOutputStream file = new FileOutputStream(plugins_dat_file); 335 336 ObjectOutputStream out = new ObjectOutputStream(file); 336 337 out.writeObject(library); … … 471 472 private void loadPlugins() { 472 473 // Attempt to restore the cached file. 474 File plugins_dat_file = new File(Utility.getGLIUserFolder(), "plugins.dat"); 473 475 try { 474 FileInputStream file = new FileInputStream( Utility.getGLIUserFolder() + "plugins.dat");476 FileInputStream file = new FileInputStream(plugins_dat_file); 475 477 ObjectInputStream input = new ObjectInputStream(file); 476 478 library = (ArrayList) input.readObject(); 477 479 } 478 480 catch (Exception error) { 479 DebugStream.println("Unable to open " + Utility.getGLIUserFolder() + "plugins.dat");481 DebugStream.println("Unable to open " + plugins_dat_file); 480 482 } 481 483
Note:
See TracChangeset
for help on using the changeset viewer.