Changeset 4383


Ignore:
Timestamp:
2003-05-28T11:49:14+12:00 (21 years ago)
Author:
jmt12
Message:

bug fix 2030073: progress bar now becomes indeterminate and message shows claculating file size at start of file action. Was caused by FileManager running the file addition task on the AWTEventThread rather than a new Thread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/file/FileManager.java

    r4366 r4383  
    8888    }
    8989    Task task = new Task(System.currentTimeMillis(), source, source_nodes, target, target_node, type);
    90     SwingUtilities.invokeLater(task);
     90    task.start();
    9191    }
    9292
     
    124124
    125125    private class Task
    126     implements Runnable {
     126    extends Thread {
    127127    private byte type;
    128128    private DragComponent source;
     
    140140    }
    141141    public void run() {
    142                 // Reset, and calculate progress bar size.
     142        // Reset, and calculate progress bar size.
    143143        queue.calculateSize(source_nodes);
    144                 // Now we queue the job(s). Note that this may fail if a read only file is encountered and we have been asked to delete.
     144        // Now we queue the job(s). Note that this may fail if a read only file is encountered and we have been asked to delete.
    145145        for(int i = 0; source_nodes != null && i < source_nodes.length; i++) {
    146146        queue.addJob(id, source, source_nodes[i], target, target_node, type, true, true, true);
Note: See TracChangeset for help on using the changeset viewer.