Class ChangesetHeaderDownloadTask
java.lang.Object
org.openstreetmap.josm.actions.downloadtasks.AbstractDownloadTask<Set<Changeset>>
org.openstreetmap.josm.actions.downloadtasks.AbstractChangesetDownloadTask
org.openstreetmap.josm.actions.downloadtasks.ChangesetHeaderDownloadTask
- All Implemented Interfaces:
DownloadTask
This is an asynchronous task for downloading a collection of changesets from the OSM server.
The task only downloads the changeset properties without the changeset content. It
updates the global
ChangesetCache.- Since:
- 2613
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classNested classes/interfaces inherited from class org.openstreetmap.josm.actions.downloadtasks.AbstractChangesetDownloadTask
AbstractChangesetDownloadTask.RunnableDownloadTask -
Field Summary
Fields inherited from class org.openstreetmap.josm.actions.downloadtasks.AbstractDownloadTask
downloadedData, zoomAfterDownload -
Constructor Summary
ConstructorsConstructorDescriptionChangesetHeaderDownloadTask(Component dialogParent, Collection<Integer> ids) Creates the download task for a collection of changeset ids.ChangesetHeaderDownloadTask(Component dialogParent, Collection<Integer> ids, boolean includeDiscussion) Creates the download task for a collection of changeset ids, with possibility to download changeset discussion.Creates the download task for a collection of changeset ids. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChangesetHeaderDownloadTaskbuildTaskForChangesets(Component parent, Collection<Changeset> changesets) Builds a download task from for a collection of changesets.static ChangesetHeaderDownloadTaskbuildTaskForChangesets(Collection<Changeset> changesets) Builds a download task from for a collection of changesets.Methods inherited from class org.openstreetmap.josm.actions.downloadtasks.AbstractChangesetDownloadTask
cancel, download, download, getConfirmationMessage, loadUrl, setDownloadTaskMethods inherited from class org.openstreetmap.josm.actions.downloadtasks.AbstractDownloadTask
acceptsUrl, acceptsUrl, getDownloadedData, getDownloadProjectionBounds, getErrorObjects, getPatterns, getTitle, isCanceled, isFailed, isSafeForRemotecontrolRequests, patterns, rememberDownloadedData, rememberErrorMessage, rememberException, setCanceled, setFailed, setZoomAfterDownload, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.openstreetmap.josm.actions.downloadtasks.DownloadTask
acceptsDocumentationSummary, getErrorMessages, providesOldData
-
Constructor Details
-
ChangesetHeaderDownloadTask
Creates the download task for a collection of changeset ids. Uses aPleaseWaitDialogwhose parent isMainApplication.getMainFrame(). Null ids or or ids <= 0 in the id collection are ignored.- Parameters:
ids- the collection of ids. Empty collection assumed if null.
-
ChangesetHeaderDownloadTask
Creates the download task for a collection of changeset ids. Uses aPleaseWaitDialogwhose parent is the parent window ofdialogParent. Null ids or or ids <= 0 in the id collection are ignored.- Parameters:
dialogParent- the parent reference component for thePleaseWaitDialog. Must not be null.ids- the collection of ids. Empty collection assumed if null.- Throws:
IllegalArgumentException- if dialogParent is null
-
ChangesetHeaderDownloadTask
public ChangesetHeaderDownloadTask(Component dialogParent, Collection<Integer> ids, boolean includeDiscussion) Creates the download task for a collection of changeset ids, with possibility to download changeset discussion. Uses aPleaseWaitDialogwhose parent is the parent window ofdialogParent. Null ids or or ids <= 0 in the id collection are ignored.- Parameters:
dialogParent- the parent reference component for thePleaseWaitDialog. Must not be null.ids- the collection of ids. Empty collection assumed if null.includeDiscussion- determines if discussion comments must be downloaded or not- Throws:
IllegalArgumentException- if dialogParent is null- Since:
- 7704
-
-
Method Details
-
buildTaskForChangesets
Builds a download task from for a collection of changesets. Ignores null values and changesets withChangeset.isNew()== true.- Parameters:
changesets- the collection of changesets. Assumes an empty collection if null.- Returns:
- the download task
-
buildTaskForChangesets
public static ChangesetHeaderDownloadTask buildTaskForChangesets(Component parent, Collection<Changeset> changesets) Builds a download task from for a collection of changesets. Ignores null values and changesets withChangeset.isNew()== true.- Parameters:
parent- the parent component relative to which thePleaseWaitDialogis displayed. Must not be null.changesets- the collection of changesets. Assumes an empty collection if null.- Returns:
- the download task
- Throws:
NullPointerException- if parent is null
-