Changeset 4595
- Timestamp:
- 2003-06-12T12:07:19+12:00 (21 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java
r4580 r4595 879 879 } 880 880 catch (Exception error) { 881 gatherer.debug(error, "Error in ClassifierManager.AddListener.actionPerformed(): " + error); 881 Gatherer.println("Error in ClassifierManager.AddListener.actionPerformed(): " + error); 882 Gatherer.printStackTrace(error); 883 882 884 } 883 885 // And if all else fails create a new classifier. -
trunk/gli/src/org/greenstone/gatherer/cdm/CollectionDesignManager.java
r4510 r4595 343 343 } 344 344 in.close(); 345 345 // Now attempt to finalize any commands that were not immediately parsed as they were waiting for unresolved references. 346 346 subcollections.reparseUnresolved(); 347 347 classifiers.reparseUnresolved(); … … 366 366 public void save() { 367 367 try { 368 368 // If the file already exists (it should) rename it. 369 369 if(in_file.exists()) { 370 370 String filename = in_file.getAbsolutePath(); … … 372 372 backup.deleteOnExit(); 373 373 if(!in_file.renameTo(backup)) { 374 gatherer.debug("Error in CollectionDesignManager.parse(): FileRenamedException");374 Gatherer.println("Error in CollectionDesignManager.parse(): FileRenamedException"); 375 375 } 376 376 in_file = new File(filename); // Just in case we moved it. -
trunk/gli/src/org/greenstone/gatherer/collection/SaveCollectionTask.java
r4571 r4595 133 133 backup.deleteOnExit(); 134 134 if(!file.renameTo(backup)) { 135 Gatherer.println("Error in CollectionManager.load(): File NotRenamedException");135 Gatherer.println("Error in CollectionManager.load(): FileRenamedException"); 136 136 } 137 137 } … … 156 156 // Now we check whether we've finished, or is this a Save As action, in which case we've got miles to go. 157 157 if(name != null) { 158 159 158 // 2. Call CollectionManager.makeCollection() to create the collection structure to save into (copied collection). 159 ///ystem.err.println("2. Make copy."); 160 160 Gatherer.c_man.createCollection(null, null, name, null, null, null); 161 161 // spd.setProgress(getValue(MAKE_COLLECTION)); 162 163 164 162 // 3. Copy files from the origin to the copied collections (except special collection files ending with ~). 163 // As part of this we must rename origin.col to copy.col 164 ///ystem.err.println("3. Copy origin."); 165 165 ArrayList files = new ArrayList(); 166 166 File collection_file = new File(Gatherer.c_man.getCollectionFilename()); -
trunk/gli/src/org/greenstone/gatherer/gui/GEditorPane.java
r4367 r4595 259 259 public void loadFile(File file) { 260 260 // Load the file. 261 gatherer.debug("Opening config file " + file.getAbsolutePath());261 Gatherer.println("GEditorPane.loadFile():Opening config file " + file.getAbsolutePath()); 262 262 try { 263 263 FileInputStream in = new FileInputStream(file); … … 273 273 catch (Exception error) { 274 274 //error.printStackTrace(); 275 gatherer.debug("Error: No Such File.");275 Gatherer.println("GEditorPane.loadFile():Error: No Such File."); 276 276 } 277 277 } -
trunk/gli/src/org/greenstone/gatherer/gui/MetaEditPane.java
r4587 r4595 436 436 thumbnail_pane = new JPanel(new BorderLayout()); 437 437 438 gatherer.debug("\tCreating thumbnail_label");438 Gatherer.println("\tCreating thumbnail_label"); 439 439 thumbnail_label = new JLabel(get("Thumbnail")); 440 440 thumbnail_label.setHorizontalAlignment(JLabel.CENTER); 441 441 442 gatherer.debug("\tCreating thumbnail_view_pane");442 Gatherer.println("\tCreating thumbnail_view_pane"); 443 443 thumbnail_view_pane = new JPanel(new FlowLayout(FlowLayout.CENTER)); 444 444 thumbnail_scroll = new JScrollPane(thumbnail_view_pane); -
trunk/gli/src/org/greenstone/gatherer/gui/SaveProgressDialog.java
r4367 r4595 113 113 } 114 114 catch (Exception e) { 115 gatherer.debug(e, "Error in SaveProgressDialog.update(): " + e); 115 Gatherer.println("Error in SaveProgressDialog.update(): " + e); 116 Gatherer.printStackTrace(e); 116 117 } 117 118 } -
trunk/gli/src/org/greenstone/gatherer/gui/browser/GHTMLPane.java
r4366 r4595 109 109 forward_pages = new Vector(); 110 110 111 gatherer.debug("\t\tCreating GHTMLPane");111 Gatherer.println("\t\tCreating GHTMLPane"); 112 112 view = new JEditorPane(); 113 113 view.setEditable(false); -
trunk/gli/src/org/greenstone/gatherer/msm/GDMManager.java
r4402 r4595 147 147 } 148 148 put(metadata_file, metadata_xml); 149 //gatherer.debug(null,"[0ms]\tCached " + metadata_file);149 //Gatherer.println("[0ms]\tCached " + metadata_file); 150 150 } 151 151 return metadata_xml; -
trunk/gli/src/org/greenstone/gatherer/msm/MSMProfiler.java
r4451 r4595 215 215 backup.deleteOnExit(); 216 216 if(!profile_file.renameTo(backup)) { 217 Gatherer.println("Error in MSMProfiler.save(): FileRename Exception");217 Gatherer.println("Error in MSMProfiler.save(): FileRenamedException"); 218 218 } 219 219 backup = null; -
trunk/gli/src/org/greenstone/gatherer/msm/MetadataSetManager.java
r4530 r4595 914 914 backup.deleteOnExit(); 915 915 if(!temp[i].renameTo(backup)) { 916 Gatherer.println("Error in MetadataSetManager.save(): FileRename Exception");916 Gatherer.println("Error in MetadataSetManager.save(): FileRenamedException"); 917 917 } 918 918 }
Note:
See TracChangeset
for help on using the changeset viewer.