Class ChangesetHeaderDownloadTask
- java.lang.Object
-
- org.openstreetmap.josm.actions.downloadtasks.AbstractDownloadTask<java.util.Set<Changeset>>
-
- org.openstreetmap.josm.actions.downloadtasks.AbstractChangesetDownloadTask
-
- org.openstreetmap.josm.actions.downloadtasks.ChangesetHeaderDownloadTask
-
- All Implemented Interfaces:
DownloadTask
public class ChangesetHeaderDownloadTask extends AbstractChangesetDownloadTask
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 globalChangesetCache
.- Since:
- 2613
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
ChangesetHeaderDownloadTask.DownloadTask
-
Nested 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
Constructors Constructor Description ChangesetHeaderDownloadTask(java.awt.Component dialogParent, java.util.Collection<java.lang.Integer> ids)
Creates the download task for a collection of changeset ids.ChangesetHeaderDownloadTask(java.awt.Component dialogParent, java.util.Collection<java.lang.Integer> ids, boolean includeDiscussion)
Creates the download task for a collection of changeset ids, with possibility to download changeset discussion.ChangesetHeaderDownloadTask(java.util.Collection<java.lang.Integer> ids)
Creates the download task for a collection of changeset ids.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChangesetHeaderDownloadTask
buildTaskForChangesets(java.awt.Component parent, java.util.Collection<Changeset> changesets)
Builds a download task from for a collection of changesets.static ChangesetHeaderDownloadTask
buildTaskForChangesets(java.util.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, setDownloadTask
-
Methods 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, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openstreetmap.josm.actions.downloadtasks.DownloadTask
acceptsDocumentationSummary, getErrorMessages
-
-
-
-
Constructor Detail
-
ChangesetHeaderDownloadTask
public ChangesetHeaderDownloadTask(java.util.Collection<java.lang.Integer> ids)
Creates the download task for a collection of changeset ids. Uses aPleaseWaitDialog
whose 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
public ChangesetHeaderDownloadTask(java.awt.Component dialogParent, java.util.Collection<java.lang.Integer> ids)
Creates the download task for a collection of changeset ids. Uses aPleaseWaitDialog
whose 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:
java.lang.IllegalArgumentException
- if dialogParent is null
-
ChangesetHeaderDownloadTask
public ChangesetHeaderDownloadTask(java.awt.Component dialogParent, java.util.Collection<java.lang.Integer> ids, boolean includeDiscussion)
Creates the download task for a collection of changeset ids, with possibility to download changeset discussion. Uses aPleaseWaitDialog
whose 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:
java.lang.IllegalArgumentException
- if dialogParent is null- Since:
- 7704
-
-
Method Detail
-
buildTaskForChangesets
public static ChangesetHeaderDownloadTask buildTaskForChangesets(java.util.Collection<Changeset> changesets)
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(java.awt.Component parent, java.util.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 thePleaseWaitDialog
is displayed. Must not be null.changesets
- the collection of changesets. Assumes an empty collection if null.- Returns:
- the download task
- Throws:
java.lang.NullPointerException
- if parent is null
-
-