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, run
private 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()
PleaseWaitRunnable
cancel
in class PleaseWaitRunnable
protected void finish()
PleaseWaitRunnable
finish
in class PleaseWaitRunnable
protected void refreshUserIdentity()
protected void realRun() throws SAXException, IOException, OsmTransferException
PleaseWaitRunnable
realRun
in class PleaseWaitRunnable
SAXException
IOException
OsmTransferException
public boolean isCanceled()