private final class CloseChangesetAction.DownloadOpenChangesetsTask extends PleaseWaitRunnable
| Modifier and Type | Field and Description |
|---|---|
private boolean |
canceled |
private List<Changeset> |
changesets |
private Exception |
lastException |
private OsmServerChangesetReader |
reader |
private UserInfo |
userInfo |
progressMonitor| Modifier | Constructor and Description |
|---|---|
private |
DownloadOpenChangesetsTask() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancel()
User pressed cancel button.
|
protected UserInfo |
fetchUserInfo()
Fetch the user info from the server.
|
protected void |
finish()
Finish up the data work.
|
Exception |
getLastException() |
boolean |
isCanceled() |
protected void |
realRun()
Called in the worker thread to do the actual work.
|
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, runprivate boolean canceled
private OsmServerChangesetReader reader
private List<Changeset> changesets
private Exception lastException
private DownloadOpenChangesetsTask()
protected void cancel()
PleaseWaitRunnablecancel in class PleaseWaitRunnableprotected void finish()
PleaseWaitRunnablefinish in class PleaseWaitRunnableprotected UserInfo fetchUserInfo() throws OsmTransferException
OsmTransferException - in case of any communication exceptionprotected void realRun() throws SAXException, IOException, OsmTransferException
PleaseWaitRunnablerealRun in class PleaseWaitRunnableSAXException - if a SAX error occursIOException - if an I/O error occursOsmTransferException - if a communication error with the OSM server occurspublic boolean isCanceled()
public Exception getLastException()