copyExternalLinksToDirectory
public static void copyExternalLinksToDirectory(java.util.List<FileListEntry> files,
java.io.File toDir,
MetaData metaData,
javax.swing.JProgressBar prog,
boolean deleteOriginalFiles,
java.awt.event.ActionListener callback)
Take a list of external links and copy the referred files to a given directory.
This method should be run off the Event Dispatch Thread. A progress bar, if given,
will be updated on the EDT.
- Parameters:
files
- The list of file links.toDir
- The directory to copy the files to.metaData
- The MetaData for the database containing the external links. This is needed
because the database might have its own file directory.prog
- A JProgressBar which will be updated to show the progress of the process.
This argument can be null if no progress bar is needed.deleteOriginalFiles
- if true, the files in their original locations will be deleted
after copying, for each file whose source directory is different from the destination
directory differs.callback
- An ActionListener which should be notified when the process is finished.
This parameter can be null if no callback is needed.