com.mucommander.job
Class TempOpenWithJob
java.lang.Object
com.mucommander.job.FileJob
com.mucommander.job.TransferFileJob
com.mucommander.job.AbstractCopyJob
com.mucommander.job.CopyJob
com.mucommander.job.TempCopyJob
com.mucommander.job.TempOpenWithJob
- All Implemented Interfaces:
- java.lang.Runnable
public class TempOpenWithJob
- extends TempCopyJob
This job copies a file or a set of files to a temporary folder, makes the temporary file(s) read-only and
executes them with a specific command. The temporary files are deleted when the JVM terminates.
- Author:
- Maxence Bernard, Nicolas Rinaudo
| 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 |
|
Method Summary |
protected void |
jobCompleted()
This method is called when this job has completed normal execution : all files have been processed without any interruption
(without any call to FileJob.interrupt()). |
| Methods inherited from class com.mucommander.job.TransferFileJob |
closeCurrentInputStream, copyFile, getCurrentFileByteCounter, getCurrentFileSize, getCurrentFileSkippedByteCounter, getFilePercentDone, getThroughputLimit, getTotalByteCounter, getTotalPercentDone, getTotalSkippedByteCounter, isCheckingIntegrity, isIntegrityCheckEnabled, jobPaused, jobResumed, jobStopped, nextFile, setCurrentInputStream, setIntegrityCheckEnabled, setThroughputLimit, skipCurrentFile, tryCopyFile, wasCurrentFileSkipped |
| Methods inherited from class com.mucommander.job.FileJob |
addFileJobListener, getCurrentFileIndex, getCurrentFilename, getEffectiveJobTime, getEndDate, getNbFiles, getPausedTime, getPauseStartDate, getStartDate, getState, interrupt, jobStarted, 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 |
TempOpenWithJob
public TempOpenWithJob(ProgressDialog progressDialog,
MainFrame mainFrame,
AbstractFile fileToExecute,
Command command)
- Creates a new
TempOpenWithJob that operates on a single file.
- Parameters:
progressDialog - the ProgressDialog that monitors this jobmainFrame - the MainFrame this job is attached tofileToExecute - the file to copy to a temporary location and executecommand - the command used to execute the temporary file
TempOpenWithJob
public TempOpenWithJob(ProgressDialog progressDialog,
MainFrame mainFrame,
FileSet filesToExecute,
Command command)
- Creates a new
TempOpenWithJob that operates on a set of files. Only a single command get executed, operating on
all files.
- Parameters:
progressDialog - the ProgressDialog that monitors this jobmainFrame - the MainFrame this job is attached tofilesToExecute - the set of files to copy to a temporary location and executecommand - the command used to execute the temporary file
jobCompleted
protected void jobCompleted()
- Description copied from class:
FileJob
- This method is called when this job has completed normal execution : all files have been processed without any interruption
(without any call to
FileJob.interrupt()).
The call happens after the last call to FileJob.processFile(AbstractFile,Object) is made.
This method implementation does nothing but it can be overriden by subclasses to properly complete the job.
Note that this method will NOT be called if a call to FileJob.interrupt() was made before all files were processed.
- Overrides:
jobCompleted in class CopyJob
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard