private void uploadResource(IResource r) {
try {
switch (r.getType()) {
case IResource.FILE:
UploadFileJob ufj = new UploadFileJob(r);
ufj.schedule();
break;
case IResource.FOLDER:
IFolder folder = (IFolder) r;
IResource[] members = folder.members();
if (members != null) {