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, runprivate 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()
PleaseWaitRunnablecancel in class PleaseWaitRunnableprotected void finish()
PleaseWaitRunnablefinish in class PleaseWaitRunnableprotected void refreshUserIdentity()
protected void realRun() throws org.xml.sax.SAXException, java.io.IOException, OsmTransferException
PleaseWaitRunnablerealRun in class PleaseWaitRunnableorg.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