|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.job.FileJob
com.mucommander.job.TransferFileJob
com.mucommander.job.AbstractCopyJob
public abstract class AbstractCopyJob
This class is the parent class of CopyJob and MoveJob and
allows them to share methods and fields.
CopyJob,
MoveJob| Field Summary | |
|---|---|
protected boolean |
append
|
protected AbstractRWArchiveFile |
archiveToOptimize
The archive that contains the destination files (may be null) |
protected AbstractFile |
baseDestFolder
Base destination folder |
protected int |
defaultFileExistsAction
Default choice when encountering an existing file |
protected java.lang.String |
errorDialogTitle
Title used for error dialogs |
protected boolean |
isOptimizingArchive
True when an archive is being optimized |
protected java.lang.String |
newName
New filename in destination |
| Fields inherited from class com.mucommander.job.FileJob |
|---|
APPEND_ACTION, APPEND_TEXT, baseSourceFolder, CANCEL_ACTION, CANCEL_TEXT, currentFile, currentFileIndex, currentFilename, files, FINISHED, INTERRUPTED, mainFrame, nbFiles, NOT_STARTED, PAUSED, progressDialog, RETRY_ACTION, RETRY_TEXT, RUNNING, SKIP_ACTION, SKIP_TEXT |
| Constructor Summary | |
|---|---|
AbstractCopyJob(ProgressDialog progressDialog,
MainFrame mainFrame,
FileSet files,
AbstractFile destFolder,
java.lang.String newName,
int fileExistsAction)
Creates a new AbstractCopyJob. |
|
| Method Summary | |
|---|---|
protected AbstractFile |
checkForCollision(AbstractFile file,
AbstractFile destFolder,
AbstractFile destFile,
boolean allowCaseVariation)
Checks if there is a file collision (file exists in the destination). |
protected AbstractFile |
createDestinationFile(AbstractFile destFolder,
java.lang.String destFileName)
Creates a destination file given a destination folder and a new file name. |
protected void |
optimizeArchive(AbstractRWArchiveFile rwArchiveFile)
Optimizes the given writable archive file and notifies the user in case of an error. |
| Methods inherited from class com.mucommander.job.FileJob |
|---|
addFileJobListener, getCurrentFileIndex, getCurrentFilename, getEffectiveJobTime, getEndDate, getNbFiles, getPausedTime, getPauseStartDate, getStartDate, getState, hasFolderChanged, interrupt, jobCompleted, jobStarted, processFile, refreshTables, removeFileJobListener, run, selectFileWhenFinished, setAutoUnmark, setPaused, setState, showErrorDialog, showErrorDialog, start, waitForUserResponse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AbstractFile baseDestFolder
protected java.lang.String newName
protected int defaultFileExistsAction
protected java.lang.String errorDialogTitle
protected boolean append
protected AbstractRWArchiveFile archiveToOptimize
protected boolean isOptimizingArchive
| Constructor Detail |
|---|
public AbstractCopyJob(ProgressDialog progressDialog,
MainFrame mainFrame,
FileSet files,
AbstractFile destFolder,
java.lang.String newName,
int fileExistsAction)
AbstractCopyJob.
progressDialog - dialog which shows this job's progressmainFrame - mainFrame this job has been triggered byfiles - files which are going to be copieddestFolder - destination folder where the files will be copiednewName - the new filename in the destination folder, can be null in which case the original filename will be used.fileExistsAction - default action to be performed when a file already exists in the destination, see FileCollisionDialog for allowed values| Method Detail |
|---|
protected AbstractFile createDestinationFile(AbstractFile destFolder,
java.lang.String destFileName)
destFolder - a destination folderdestFileName - a destination file name
protected AbstractFile checkForCollision(AbstractFile file,
AbstractFile destFolder,
AbstractFile destFile,
boolean allowCaseVariation)
file - a source filedestFolder - a destination folderdestFile - a destination fileallowCaseVariation - if true,
protected void optimizeArchive(AbstractRWArchiveFile rwArchiveFile)
rwArchiveFile - the writable archive file to optimize
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard