- Timestamp:
- 2006-02-14T14:04:38+13:00 (18 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer/file
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/file/FileJob.java
r11081 r11241 38 38 public boolean done = false; 39 39 40 public boolean folder_level = false;41 40 /** The type of this movement as an byte. */ 42 41 public byte type = 0; -
trunk/gli/src/org/greenstone/gatherer/file/FileManager.java
r11073 r11241 168 168 boolean cancelled = file_queue.calculateSize(source_nodes); 169 169 if (!cancelled) { 170 file_queue.addJob(id, source, source_nodes, target, target_node, type , true);170 file_queue.addJob(id, source, source_nodes, target, target_node, type); 171 171 if (Gatherer.isGsdlRemote) { 172 172 String collection_name = Gatherer.c_man.getCollection().getName(); -
trunk/gli/src/org/greenstone/gatherer/file/FileQueue.java
r11086 r11241 98 98 * @param type The type of this movement as an int, either COPY or DELETE. 99 99 */ 100 public void addJob(long id, DragComponent source, FileNode[] children, DragComponent target, FileNode parent, byte type , boolean folder_level)100 public void addJob(long id, DragComponent source, FileNode[] children, DragComponent target, FileNode parent, byte type) 101 101 { 102 102 // Queue the sub-job(s) (this may fail if we are asked to delete a read only file) 103 103 for (int i = 0; i < children.length; i++) { 104 addJob(id, source, children[i], target, parent, type, folder_level,-1);104 addJob(id, source, children[i], target, parent, type, -1); 105 105 } 106 106 } 107 107 108 synchronized private void addJob(long id, DragComponent source, FileNode child, DragComponent target, FileNode parent, byte type, boolean folder_level,int position) {108 synchronized private void addJob(long id, DragComponent source, FileNode child, DragComponent target, FileNode parent, byte type, int position) { 109 109 FileJob job = new FileJob(id, source, child, target, parent, type); 110 job.folder_level = folder_level;111 110 DebugStream.println("Adding job: " + job); 112 111 if(position != -1 && position <= queue.size() + 1) {
Note:
See TracChangeset
for help on using the changeset viewer.