private void downloadResource(IResource r) {
try {
switch (r.getType()) {
case IFile.FILE:
DownloadFileJob dfj = new DownloadFileJob(r);
dfj.schedule();
break;
case IFolder.FOLDER:
IFolder folder = (IFolder) r;
IResource[] children = folder.members();
if (children != null) {