Class DownloadPrimitivesWithReferrersTask

java.lang.Object
org.openstreetmap.josm.gui.PleaseWaitRunnable
org.openstreetmap.josm.gui.io.DownloadPrimitivesWithReferrersTask
All Implemented Interfaces:
Runnable, ProgressMonitor.CancelListener

Task for downloading a set of primitives with all referrers.
  • Field Details

    • newLayer

      private final boolean newLayer
      If true download into a new layer
    • ids

      private final List<PrimitiveId> ids
      List of primitives id to download
    • full

      private final boolean full
      If true, download members for relation
    • downloadReferrers

      private final boolean downloadReferrers
      If true, download also referrers
    • tmpLayer

      private final OsmDataLayer tmpLayer
      Temporary layer where downloaded primitives are put
    • canceled

      private boolean canceled
      Flag indicated that user ask for cancel this task
    • currentTask

      Reference to the task currently running
    • missingPrimitives

      set of missing ids, with overpass API these are also deleted objects
  • Constructor Details

    • DownloadPrimitivesWithReferrersTask

      public DownloadPrimitivesWithReferrersTask(boolean newLayer, List<PrimitiveId> ids, boolean downloadReferrers, boolean full, String newLayerName, ProgressMonitor monitor)
      Constructor
      Parameters:
      newLayer - if the data should be downloaded into a new layer
      ids - List of primitive id to download
      downloadReferrers - if the referrers of the object should be downloaded as well, i.e., parent relations, and for nodes, additionally, parent ways
      full - if the members of a relation should be downloaded as well
      newLayerName - the name to use for the new layer, can be null.
      monitor - ProgressMonitor to use, or null to create a new one
  • Method Details