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:
ActionListener,Serializable,Cloneable,EventListener,Action,Destroyable
Download an OsmPrimitive by specifying type and ID
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.openstreetmap.josm.actions.JosmAction
JosmAction.ActiveLayerChangeAdapter, JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ShortcutAction shortcut (ctrl-shift-O by default), made public in order to be used fromGettingStartedpage.Fields inherited from class org.openstreetmap.josm.actions.JosmAction
scFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic voidprocessItems(boolean newLayer, 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, waitFutureMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
SHORTCUT
Action shortcut (ctrl-shift-O by default), made public in order to be used fromGettingStartedpage.
-
-
Constructor Details
-
DownloadPrimitiveAction
public DownloadPrimitiveAction()Constructs a newDownloadPrimitiveAction.
-
-
Method Details
-
actionPerformed
-
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 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
-