Changeset 34289

Show
Ignore:
Timestamp:
24.07.2020 15:57:30 (11 days ago)
Author:
ak19
Message:

Some comments for the previous commit.

Files:
1 modified

Legend:

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

    r34288 r34289  
    8585    } 
    8686 
     87    /** There are tasks that depend on whether a file copy was succesful, so need to maintain listeners 
     88     * and need to fire events on successful copy. */ 
    8789    public void fireFileCopiedSuccessfully(File new_file) { 
    8890    // Send the event off to all the matching Listeners 
     
    9496    file_copied_success_listeners.add(listener); 
    9597    } 
    96  
    97     public void removeFileCopiedSuccessListener(FileCopiedSuccessListener listener) 
    98     { 
     98    public void removeFileCopiedSuccessListener(FileCopiedSuccessListener listener) { 
    9999    file_copied_success_listeners.remove(listener); 
    100100    } 
     
    426426    try { 
    427427        copyFile(source_file, target_file, true); 
     428        // let any listeners know that the copy wasn't cancelled and took place without error 
    428429        fireFileCopiedSuccessfully(source_file); 
    429430    }