Class AbstractChangesetDownloadTask.RunnableDownloadTask
- java.lang.Object
-
- org.openstreetmap.josm.gui.PleaseWaitRunnable
-
- org.openstreetmap.josm.actions.downloadtasks.AbstractChangesetDownloadTask.RunnableDownloadTask
-
- All Implemented Interfaces:
java.lang.Runnable,ProgressMonitor.CancelListener
- Direct Known Subclasses:
ChangesetContentDownloadTask.DownloadTask,ChangesetHeaderDownloadTask.DownloadTask,ChangesetQueryTask.DownloadTask
- Enclosing class:
- AbstractChangesetDownloadTask
abstract class AbstractChangesetDownloadTask.RunnableDownloadTask extends PleaseWaitRunnable
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<Changeset>downloadedChangesetsthe set of downloaded changesetsprotected java.lang.ExceptionlastExceptionkeeps the last exception thrown in the task, if anyprotected OsmServerChangesetReaderreaderthe reader object used to read changesets from the API-
Fields inherited from class org.openstreetmap.josm.gui.PleaseWaitRunnable
progressMonitor
-
-
Constructor Summary
Constructors Constructor Description RunnableDownloadTask(java.awt.Component parent, java.lang.String title)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcancel()User pressed cancel button.protected voidrememberLastException(java.lang.Exception e)protected voidupdateChangesets()-
Methods inherited from class org.openstreetmap.josm.gui.PleaseWaitRunnable
afterFinish, canRunInBackground, finish, getProgressMonitor, operationCanceled, realRun, run
-
-
-
-
Field Detail
-
reader
protected final OsmServerChangesetReader reader
the reader object used to read changesets from the API
-
downloadedChangesets
protected final java.util.Set<Changeset> downloadedChangesets
the set of downloaded changesets
-
lastException
protected java.lang.Exception lastException
keeps the last exception thrown in the task, if any
-
-
Constructor Detail
-
RunnableDownloadTask
RunnableDownloadTask(java.awt.Component parent, java.lang.String title)
-
-
Method Detail
-
cancel
protected void cancel()
Description copied from class:PleaseWaitRunnableUser pressed cancel button.- Specified by:
cancelin classPleaseWaitRunnable
-
rememberLastException
protected final void rememberLastException(java.lang.Exception e)
-
updateChangesets
protected final void updateChangesets()
-
-