su.updateProgressStatus(pId, "Uploading " + p.toString()
su.updateProgressStatus(StatusUpdate.LEVEL_UPLOAD_PROGRESS, "Uploading " + p.toString()
		void runTask() {			ArrayList pictures = g.getAllPictures();						pId = su.startProgress(0, pictures.size(), "Uploading pictures", false);						// upload each file, one at a time			boolean allGood = true;			int uploadedCount = 0;			Iterator iter = pictures.iterator();			while (iter.hasNext() && allGood && !interrupt) {				Picture p = (Picture) iter.next();				su.updateProgressStatus(pId, "Uploading " + p.toString()					+ " (" + (uploadedCount + 1) + "/" + pictures.size() + ")");								allGood = uploadPicture(p);								su.updateProgressValue(pId, uploadedCount++);								p.getAlbum().removePicture(p);			}						if (allGood) {				su.stopProgress(pId, "Upload complete");			} else {				su.stopProgress(pId, "Upload failed");			}						pId = -1;		}