((UploadProgress) su).updateProgressStatus(StatusUpdate.LEVEL_UPLOAD_PROGRESS, GRI18n.getString(MODULE, "upStop")); ((UploadProgress) su).setUndetermined(StatusUpdate.LEVEL_UPLOAD_PROGRESS, true);
su.updateProgressStatus(StatusUpdate.LEVEL_UPLOAD_PROGRESS, GRI18n.getString(MODULE, "upStop")); su.setUndetermined(StatusUpdate.LEVEL_UPLOAD_PROGRESS, true);
					public void actionPerformed(ActionEvent e) {						((UploadProgress) su).updateProgressStatus(StatusUpdate.LEVEL_UPLOAD_PROGRESS, GRI18n.getString(MODULE, "upStop"));						((UploadProgress) su).setUndetermined(StatusUpdate.LEVEL_UPLOAD_PROGRESS, true);						interrupt();						long startTime = System.currentTimeMillis();						while (!terminated && System.currentTimeMillis() < startTime + 10000) {							try {								Thread.sleep(1000);							} catch (InterruptedException e1) {							}						}						if (!terminated) {							Log.log(Log.LEVEL_ERROR, "Thread would not terminate properly: killing it");							thread.stop();							// since we killed the thread, it's not going to clean up after itself							cleanUp();						}						((UploadProgress) su).setVisible(false);						((UploadProgress) su).dispose();					}