public class ChangesetQueryTask extends PleaseWaitRunnable implements ChangesetDownloadTask
| Modifier and Type | Field and Description |
|---|---|
private boolean |
canceled
true if the task was canceled
|
private OsmServerChangesetReader |
changesetReader
the reader object used to submit the changeset query to the API
|
private java.util.Set<Changeset> |
downloadedChangesets
the set of downloaded changesets
|
private java.lang.Exception |
lastException
the last exception remembered, if any
|
private ChangesetQuery |
query
the changeset query
|
private OsmServerUserInfoReader |
userInfoReader
the reader object used to read information about the current user from the API
|
progressMonitor| Constructor and Description |
|---|
ChangesetQueryTask(ChangesetQuery query)
Creates the task.
|
ChangesetQueryTask(java.awt.Component parent,
ChangesetQuery query)
Creates the task.
|
| 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
|
java.util.Set<Changeset> |
getDownloadedChangesets() |
boolean |
isCanceled() |
boolean |
isFailed() |
protected void |
realRun()
Called in the worker thread to do the actual work.
|
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, runprivate ChangesetQuery query
private boolean canceled
private java.util.Set<Changeset> downloadedChangesets
private java.lang.Exception lastException
private OsmServerUserInfoReader userInfoReader
private OsmServerChangesetReader changesetReader
public ChangesetQueryTask(ChangesetQuery query) throws java.lang.IllegalArgumentException
query - the query to submit to the OSM server. Must not be null.java.lang.IllegalArgumentException - thrown if query is null.public ChangesetQueryTask(java.awt.Component parent, ChangesetQuery query) throws java.lang.IllegalArgumentException
parent - the parent component relative to which the PleaseWaitDialog is displayed.
Must not be null.query - the query to submit to the OSM server. Must not be null.java.lang.IllegalArgumentException - thrown if query is null.java.lang.IllegalArgumentException - thrown if parent is nullprotected void cancel()
PleaseWaitRunnablecancel in class PleaseWaitRunnableprotected void finish()
PleaseWaitRunnablefinish in class PleaseWaitRunnableprotected void fullyIdentifyCurrentUser() throws OsmTransferException
OsmTransferException - thrown if something went wrongprotected void realRun() throws org.xml.sax.SAXException, java.io.IOException, OsmTransferException
PleaseWaitRunnablerealRun in class PleaseWaitRunnableorg.xml.sax.SAXExceptionjava.io.IOExceptionOsmTransferExceptionpublic java.util.Set<Changeset> getDownloadedChangesets()
getDownloadedChangesets in interface ChangesetDownloadTaskpublic boolean isCanceled()
isCanceled in interface ChangesetDownloadTaskpublic boolean isFailed()
isFailed in interface ChangesetDownloadTask