|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gjt.sp.util.Task
org.gjt.sp.jedit.io.CopyFileWorker
public class CopyFileWorker
This worker will copy a file. Be careful it override files if the target already exists
| Constructor Summary | |
|---|---|
CopyFileWorker(java.awt.Component comp,
java.util.List<java.lang.String> sources,
java.lang.String target)
Copy all files from the list to the target directory. |
|
CopyFileWorker(java.awt.Component comp,
java.util.List<java.lang.String> sources,
java.lang.String target,
org.gjt.sp.jedit.io.CopyFileWorker.Behavior behavior)
Copy all files from the list to the target directory. |
|
CopyFileWorker(java.awt.Component comp,
java.lang.String source,
java.lang.String target)
Copy a file. |
|
| Method Summary | |
|---|---|
void |
_run()
This is the method you have to implement and that will be executed in the thread. |
java.lang.String |
toString()
|
| Methods inherited from class org.gjt.sp.util.Task |
|---|
cancel, getIoTask, getLabel, getMaximum, getState, getStatus, getValue, isCancellable, run, setCancellable, setLabel, setMaximum, setStatus, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CopyFileWorker(java.awt.Component comp,
java.lang.String source,
java.lang.String target)
comp - the component that will be used as parent in case of errorsource - the source pathtarget - the target path (it is the file path, not a parent directory)
public CopyFileWorker(java.awt.Component comp,
java.util.List<java.lang.String> sources,
java.lang.String target)
comp - the component that will be used as parent in case of errorsources - the sources path to copytarget - the target path (it must be a directory otherwise nothing will be copied)
public CopyFileWorker(java.awt.Component comp,
java.util.List<java.lang.String> sources,
java.lang.String target,
org.gjt.sp.jedit.io.CopyFileWorker.Behavior behavior)
Behavior will decide what
to do.
comp - the component that will be used as parent in case of errorsources - the sources path to copytarget - the target path (it must be a directory otherwise nothing will be copied)behavior - the behavior if the target file already exists| Method Detail |
|---|
public void _run()
Task
_run in class Taskpublic java.lang.String toString()
toString in class Task
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||