public class DownloadPrimitiveAction extends JosmAction
JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter
sc
changeSupport, enabled
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 and Description |
---|
DownloadPrimitiveAction()
Constructs a new
DownloadPrimitiveAction . |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
static void |
processItems(boolean newLayer,
List<PrimitiveId> ids,
boolean downloadReferrers,
boolean full) |
destroy, getCurrentDataSet, getEditLayer, getShortcut, initEnabledState, installAdapters, setTooltip, updateEnabledState, updateEnabledState
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public DownloadPrimitiveAction()
DownloadPrimitiveAction
.public void actionPerformed(ActionEvent e)
public static void processItems(boolean newLayer, List<PrimitiveId> ids, boolean downloadReferrers, boolean full)
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