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
Fields inherited from class org.openstreetmap.josm.actions.JosmAction |
sc |
Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
Fields 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 |
Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DownloadPrimitiveAction
public DownloadPrimitiveAction()
restorePrimitivesHistory
protected void restorePrimitivesHistory(HistoryComboBox cbHistory)
- Restore the current history from the preferences
- Parameters:
cbHistory
-
remindPrimitivesHistory
protected void remindPrimitivesHistory(HistoryComboBox cbHistory)
- Remind the current history in the preferences
- Parameters:
cbHistory
-
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)
- Parameters:
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 well
reportProblemDialog
private static ExtendedDialog reportProblemDialog(java.util.Set<PrimitiveId> errs,
java.lang.String TITLE,
java.lang.String TEXT,
java.lang.String LIST_LABEL,
int msgType)
tryToPasteFromClipboard
private void tryToPasteFromClipboard(OsmIdTextField tfId,
OsmPrimitiveTypesComboBox cbType)
JOSM