Changeset 8598
- Timestamp:
- 2004-11-18T15:02:17+13:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/file/FileQueue.java
r8596 r8598 53 53 /** When someone requests the movement queue to be dumped this cancel flag is set to true. */ 54 54 private boolean cancel_action = false; 55 56 55 /** The button which controls the stopping of the file queue. */ 57 56 private JButton stop_button = null; 58 59 57 /** true if the user has selected yes to all from a file 'clash' dialog. */ 60 58 private boolean yes_to_all = false; … … 83 81 * @param job A previously created FileJob. 84 82 */ 85 synchronized p ublicvoid addJob(FileJob job, int position) {83 synchronized private void addJob(FileJob job, int position) { 86 84 job.done = true; // Ensure that the requeued job is marked as done. 87 85 queue.add(position, job); … … 103 101 } 104 102 105 synchronized p ublicvoid addJob(long id, DragComponent source, FileNode child, DragComponent target, FileNode parent, byte type, boolean undo, boolean undoable, boolean folder_level, int position) {103 synchronized private void addJob(long id, DragComponent source, FileNode child, DragComponent target, FileNode parent, byte type, boolean undo, boolean undoable, boolean folder_level, int position) { 106 104 FileJob job = new FileJob(id, source, child, target, parent, type, undo, undoable); 107 105 job.folder_level = folder_level; … … 203 201 destination_node = (FileNode) target_model.getRoot(); 204 202 } 203 205 204 // Extract common job details. 206 205 File source_file = origin_node.getFile(); 207 206 File target_file = null; 208 207 // Determine the target file for a copy or move. 209 if(job.type == FileJob.COPY || job.type == FileJob.MOVE) { 210 //target_file = new File(destination_node.getFile(), source_file.getName()); 208 if (job.type == FileJob.COPY || job.type == FileJob.MOVE) { 211 209 // use the name of the filenode instead of the name of the file - these should be the same except for the collection directories where we want the collection name to be used, not 'import' which is the underlying name 212 210 target_file = new File(destination_node.getFile(), origin_node.toString());
Note:
See TracChangeset
for help on using the changeset viewer.