public class DownloadOpenChangesetsTask extends PleaseWaitRunnable
| Modifier and Type | Field and Description |
|---|---|
private boolean |
canceled |
private List<Changeset> |
changesets |
private Exception |
lastException |
private Component |
parent |
private OsmServerChangesetReader |
reader |
progressMonitor| Constructor and Description |
|---|
DownloadOpenChangesetsTask(Component parent)
Constructs the task
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
cancel()
User pressed cancel button.
|
protected void |
finish()
Finish up the data work.
|
boolean |
isCanceled() |
protected void |
realRun()
Called in the worker thread to do the actual work.
|
protected void |
refreshUserIdentity()
Refreshes the user info from the server.
|
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, runprivate boolean canceled
private OsmServerChangesetReader reader
private List<Changeset> changesets
private Exception lastException
public DownloadOpenChangesetsTask(Component parent)
parent - is a component to show error messagesprotected void cancel()
PleaseWaitRunnablecancel in class PleaseWaitRunnableprotected void finish()
PleaseWaitRunnablefinish in class PleaseWaitRunnableprotected void refreshUserIdentity()
protected void realRun() throws SAXException, IOException, OsmTransferException
PleaseWaitRunnablerealRun in class PleaseWaitRunnableSAXExceptionIOExceptionOsmTransferExceptionpublic boolean isCanceled()