com.mucommander.job
Class ChangeFileAttributesJob
java.lang.Object
com.mucommander.job.FileJob
com.mucommander.job.ChangeFileAttributesJob
- All Implemented Interfaces:
- java.lang.Runnable
public class ChangeFileAttributesJob
- extends FileJob
- Author:
- Maxence Bernard
| 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 |
| Methods inherited from class com.mucommander.job.FileJob |
addFileJobListener, getCurrentFileIndex, getCurrentFilename, getEffectiveJobTime, getEndDate, getNbFiles, getPausedTime, getPauseStartDate, getStartDate, getState, getStatusString, getTotalPercentDone, interrupt, jobCompleted, jobPaused, jobResumed, jobStarted, jobStopped, nextFile, 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 |
ChangeFileAttributesJob
public ChangeFileAttributesJob(ProgressDialog progressDialog,
MainFrame mainFrame,
FileSet files,
int permissions,
boolean recurseOnDirectories)
ChangeFileAttributesJob
public ChangeFileAttributesJob(ProgressDialog progressDialog,
MainFrame mainFrame,
FileSet files,
long date,
boolean recurseOnDirectories)
processFile
protected boolean processFile(AbstractFile file,
java.lang.Object recurseParams)
- Description copied from class:
FileJob
- Automatically called by
FileJob.run() for each file that needs to be processed.
- Specified by:
processFile in class FileJob
- Parameters:
file - the file or folder to processrecurseParams - array of parameters which can be used when calling this method recursively, contains null when called by FileJob.run()
- Returns:
true if the operation was sucessful
hasFolderChanged
protected boolean hasFolderChanged(AbstractFile folder)
- Description copied from class:
FileJob
- Returns
true if the given folder has or may have been modified by this job.
This method is called after this job has finished processing files, to determine if the current MainFrame's
file tables need to be refreshed to reveal the modified contents.
- Specified by:
hasFolderChanged in class FileJob
- Parameters:
folder - the folder to test
- Returns:
- true if the given folder has or may have been modified by this job
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard