18 package org.turro.wd.tree;
20 import java.text.ParseException;
21 import org.apache.pivot.wtk.TreeView;
22 import org.turro.wd.files.WorkFile;
30 private String commentCommit, commentUpdate;
31 private int updateAction, commitAction;
33 public static final int
36 UPDATE_UPDATE_FOR_EDITING = 2,
37 COMMIT_DO_NOTHING = 0,
38 COMMIT_UNLOCK_ALL = 1,
43 String commentCommit,
int commitAction,
44 String commentUpdate,
int updateAction) {
46 this.commentCommit = commentCommit;
47 this.commitAction = commitAction;
48 this.commentUpdate = commentUpdate;
49 this.updateAction = updateAction;
70 wf.
doUpload(commentCommit, commitAction);
71 }
else if(wf.
isDownloadable() || (updateAction == UPDATE_UPDATE_FOR_EDITING)) {
73 }
else if(wf.
isServerLocked() && commitAction == COMMIT_UNLOCK_ALL) {
void doDownload(int updateAction)
void doUpload(String comment, int commitAction)
void process(TreeDirectory dir)
static final int UPDATE_DO_NOTHING
void process(TreeWorkFile file)
SyncTask(TreeView treeView, String caption, String commentCommit, int commitAction, String commentUpdate, int updateAction)