public class DownloadOpenChangesetsTask extends PleaseWaitRunnable
Modifier and Type | Field and Description |
---|---|
private boolean |
canceled |
private java.util.List<Changeset> |
changesets |
private java.lang.Exception |
lastException |
private java.awt.Component |
parent |
private OsmServerChangesetReader |
reader |
progressMonitor
Constructor and Description |
---|
DownloadOpenChangesetsTask(java.awt.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.
|
java.util.List<Changeset> |
getChangesets()
Returns the changesets.
|
boolean |
isCanceled()
Determines if this task has been cancelled.
|
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 java.util.List<Changeset> changesets
private java.lang.Exception lastException
private final java.awt.Component parent
public DownloadOpenChangesetsTask(java.awt.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 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 this task has been cancelledpublic final java.util.List<Changeset> getChangesets()
null