private final class CloseChangesetAction.DownloadOpenChangesetsTask extends PleaseWaitRunnable
| Modifier and Type | Field and Description |
|---|---|
private boolean |
canceled |
private java.util.List<Changeset> |
changesets |
private java.lang.Exception |
lastException |
private OsmServerChangesetReader |
reader |
progressMonitor| Modifier | Constructor and Description |
|---|---|
private |
DownloadOpenChangesetsTask() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancel()
User pressed cancel button.
|
private UserInfo |
fetchUserInfo()
Fetch the user info from the server.
|
protected void |
finish()
Finish up the data work.
|
java.lang.Exception |
getLastException()
Returns the last exception that occurred.
|
boolean |
isCanceled()
Determines if the download task has been canceled.
|
protected void |
realRun()
Called in the worker thread to do the actual work.
|
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, runprivate boolean canceled
private OsmServerChangesetReader reader
private java.util.List<Changeset> changesets
private java.lang.Exception lastException
private DownloadOpenChangesetsTask()
protected void cancel()
PleaseWaitRunnablecancel in class PleaseWaitRunnableprotected void finish()
PleaseWaitRunnablefinish in class PleaseWaitRunnableprivate UserInfo fetchUserInfo() throws OsmTransferException
OsmTransferException - in case of any communication exceptionprotected void realRun() throws org.xml.sax.SAXException, java.io.IOException, OsmTransferException
PleaseWaitRunnablerealRun in class PleaseWaitRunnableorg.xml.sax.SAXException - if a SAX error occursjava.io.IOException - if an I/O error occursOsmTransferException - if a communication error with the OSM server occurspublic boolean isCanceled()
true if the download task has been canceledpublic java.lang.Exception getLastException()
null