class ChangesetQueryTask.DownloadTask extends AbstractChangesetDownloadTask.RunnableDownloadTask
Modifier and Type | Field and Description |
---|---|
private ChangesetQuery |
query
the changeset query
|
private OsmServerUserInfoReader |
userInfoReader
the reader object used to read information about the current user from the API
|
downloadedChangesets, lastException, reader
progressMonitor
Constructor and Description |
---|
DownloadTask(java.awt.Component parent,
ChangesetQuery query) |
Modifier and Type | Method and Description |
---|---|
protected void |
cancel()
User pressed cancel button.
|
protected void |
finish()
Finish up the data work.
|
protected void |
fullyIdentifyCurrentUser()
Tries to fully identify the current JOSM user
|
protected void |
realRun()
Called in the worker thread to do the actual work.
|
rememberLastException, updateChangesets
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, run
private ChangesetQuery query
private final OsmServerUserInfoReader userInfoReader
DownloadTask(java.awt.Component parent, ChangesetQuery query)
protected void fullyIdentifyCurrentUser() throws OsmTransferException
OsmTransferException
- if something went wrongprotected 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 occursprotected void finish()
PleaseWaitRunnable
finish
in class PleaseWaitRunnable
protected void cancel()
PleaseWaitRunnable
cancel
in class AbstractChangesetDownloadTask.RunnableDownloadTask