public class DownloadPrimitiveAction extends JosmAction
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) |
private static ExtendedDialog |
reportProblemDialog(Set<PrimitiveId> errs,
String TITLE,
String TEXT,
String LIST_LABEL,
int msgType) |
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
- downloadReferrers
- 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 wellprivate static ExtendedDialog reportProblemDialog(Set<PrimitiveId> errs, String TITLE, String TEXT, String LIST_LABEL, int msgType)