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, run
private boolean canceled
private OsmServerChangesetReader reader
private java.util.List<Changeset> changesets
private java.lang.Exception lastException
private DownloadOpenChangesetsTask()
protected void cancel()
PleaseWaitRunnable
cancel
in class PleaseWaitRunnable
protected void finish()
PleaseWaitRunnable
finish
in class PleaseWaitRunnable
private UserInfo fetchUserInfo() throws OsmTransferException
OsmTransferException
- in case of any communication exceptionprotected void realRun() throws org.xml.sax.SAXException, java.io.IOException, OsmTransferException
PleaseWaitRunnable
realRun
in class PleaseWaitRunnable
org.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