Changeset 8598


Ignore:
Timestamp:
2004-11-18T15:02:17+13:00 (19 years ago)
Author:
mdewsnip
Message:

Minor tidy ups.

File:
1 edited

Legend:

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

    r8596 r8598  
    5353    /** When someone requests the movement queue to be dumped this cancel flag is set to true. */
    5454    private boolean cancel_action = false;
    55 
    5655    /** The button which controls the stopping of the file queue. */
    5756    private JButton stop_button = null;
    58 
    5957    /** true if the user has selected yes to all from a file 'clash' dialog. */
    6058    private boolean yes_to_all = false;
     
    8381     * @param job A previously created FileJob.
    8482     */
    85     synchronized public void addJob(FileJob job, int position) {
     83    synchronized private void addJob(FileJob job, int position) {
    8684    job.done = true; // Ensure that the requeued job is marked as done.
    8785    queue.add(position, job);
     
    103101    }
    104102
    105     synchronized public void 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) {
    106104    FileJob job = new FileJob(id, source, child, target, parent, type, undo, undoable);
    107105    job.folder_level = folder_level;
     
    203201            destination_node = (FileNode) target_model.getRoot();
    204202            }
     203
    205204            // Extract common job details.
    206205            File source_file = origin_node.getFile();
    207206            File target_file = null;
    208207            // 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) {
    211209            // 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
    212210            target_file = new File(destination_node.getFile(), origin_node.toString());
Note: See TracChangeset for help on using the changeset viewer.