Changeset 10342 for trunk/gli/src/org/greenstone/gatherer/cdm
- Timestamp:
- 2005-07-28T15:50:17+12:00 (19 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/cdm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java
r10341 r10342 103 103 104 104 DebugStream.println("deleting classifiers.dat"); 105 File class_file = new File( Utility.getGLIUserFolder(),"classifiers.dat");105 File class_file = new File(Gatherer.getGLIUserDirectoryPath() + "classifiers.dat"); 106 106 if (class_file.exists()) { 107 107 return Utility.delete(class_file); … … 261 261 private void saveClassifiers() { 262 262 try { 263 File classifiers_dat_file = new File( Utility.getGLIUserFolder(),"classifiers.dat");263 File classifiers_dat_file = new File(Gatherer.getGLIUserDirectoryPath() + "classifiers.dat"); 264 264 FileOutputStream file = new FileOutputStream(classifiers_dat_file); 265 265 ObjectOutputStream out = new ObjectOutputStream(file); … … 369 369 private void loadClassifiers() { 370 370 // Attempt to restore the cached file. 371 File classifiers_dat_file = new File( Utility.getGLIUserFolder(),"classifiers.dat");371 File classifiers_dat_file = new File(Gatherer.getGLIUserDirectoryPath() + "classifiers.dat"); 372 372 try { 373 373 FileInputStream file = new FileInputStream(classifiers_dat_file); -
trunk/gli/src/org/greenstone/gatherer/cdm/MetadataSetView.java
r9172 r10342 289 289 public void actionPerformed(ActionEvent event) 290 290 { 291 JFileChooser chooser = new JFileChooser(new File( Utility.METADATA_DIR));291 JFileChooser chooser = new JFileChooser(new File(Gatherer.getGLIMetadataDirectoryPath())); 292 292 chooser.setFileFilter(new MetadataSet.MetadataSetFileFilter()); 293 293 int return_val = chooser.showDialog(Gatherer.g_man, Dictionary.get("CDM.MetadataSetManager.Add")); -
trunk/gli/src/org/greenstone/gatherer/cdm/PluginManager.java
r10237 r10342 107 107 108 108 DebugStream.println("deleting plugins.dat"); 109 File plugin_file = new File( Utility.getGLIUserFolder(),"plugins.dat");109 File plugin_file = new File(Gatherer.getGLIUserDirectoryPath() + "plugins.dat"); 110 110 if (plugin_file.exists()) { 111 111 return Utility.delete(plugin_file); … … 359 359 private void savePlugins() { 360 360 try { 361 File plugins_dat_file = new File( Utility.getGLIUserFolder(),"plugins.dat");361 File plugins_dat_file = new File(Gatherer.getGLIUserDirectoryPath() + "plugins.dat"); 362 362 FileOutputStream file = new FileOutputStream(plugins_dat_file); 363 363 ObjectOutputStream out = new ObjectOutputStream(file); … … 499 499 private void loadPlugins() { 500 500 // Attempt to restore the cached file. 501 File plugins_dat_file = new File( Utility.getGLIUserFolder(),"plugins.dat");501 File plugins_dat_file = new File(Gatherer.getGLIUserDirectoryPath() + "plugins.dat"); 502 502 try { 503 503 FileInputStream file = new FileInputStream(plugins_dat_file);
Note:
See TracChangeset
for help on using the changeset viewer.