Package org.openstreetmap.josm.actions
Class DownloadPrimitiveAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.actions.JosmAction
-
- org.openstreetmap.josm.actions.DownloadPrimitiveAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
,Destroyable
public class DownloadPrimitiveAction extends JosmAction
Download an OsmPrimitive by specifying type and ID- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.actions.JosmAction
JosmAction.ActiveLayerChangeAdapter, JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter
-
-
Field Summary
Fields Modifier and Type Field Description static Shortcut
SHORTCUT
Action shortcut (ctrl-shift-O by default), made public in order to be used fromGettingStarted
page.-
Fields inherited from class org.openstreetmap.josm.actions.JosmAction
sc
-
-
Constructor Summary
Constructors Constructor Description DownloadPrimitiveAction()
Constructs a newDownloadPrimitiveAction
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
static void
processItems(boolean newLayer, java.util.List<PrimitiveId> ids, boolean downloadReferrers, boolean full)
Submits the download task for the given primitive ids.-
Methods inherited from class org.openstreetmap.josm.actions.JosmAction
buildActiveLayerChangeAdapter, buildLayerChangeAdapter, checkAndConfirmOutlyingOperation, destroy, getLayerManager, getShortcut, initEnabledState, installAdapters, listenToLayerChange, listenToSelectionChange, setHelpId, setToolbarId, setTooltip, updateEnabledState, updateEnabledState, updateEnabledStateOnCurrentSelection, updateEnabledStateOnCurrentSelection, updateEnabledStateOnModifiableSelection, waitFuture
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
DownloadPrimitiveAction
public DownloadPrimitiveAction()
Constructs a newDownloadPrimitiveAction
.
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
-
processItems
public static void processItems(boolean newLayer, java.util.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 layerids
- List of primitive id to downloaddownloadReferrers
- if the referrers of the object should be downloaded as well, i.e., parent relations, and for nodes, additionally, parent waysfull
- if the members of a relation should be downloaded as well
-
-