Class DownloadPrimitiveAction

java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.actions.JosmAction
org.openstreetmap.josm.actions.DownloadPrimitiveAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action, Destroyable

public class DownloadPrimitiveAction extends JosmAction
Download an OsmPrimitive by specifying type and ID
See Also:
  • Field Details

    • SHORTCUT

      public static final Shortcut SHORTCUT
      Action shortcut (ctrl-shift-O by default), made public in order to be used from GettingStarted page.
  • Constructor Details

  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent e)
    • processItems

      public static void processItems(boolean newLayer, List<PrimitiveId> ids, boolean downloadReferrers, boolean full)
      Submits the download task for the given primitive ids.
      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